Skip to content

Commit 321a1b5

Browse files
committed
Changed memory_atom to out_of_memory atom in ets implementation
Signed-off-by: Tomasz Sobkiewicz <tomasz.sobkiewicz@swmansion.com>
1 parent 7caa566 commit 321a1b5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/libAtomVM/nifs.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3190,7 +3190,7 @@ static term nif_ets_new(Context *ctx, int argc, term argv[])
31903190
case EtsTableNameInUse:
31913191
RAISE_ERROR(BADARG_ATOM);
31923192
case EtsAllocationFailure:
3193-
RAISE_ERROR(MEMORY_ATOM);
3193+
RAISE_ERROR(OUT_OF_MEMORY_ATOM);
31943194
default:
31953195
AVM_ABORT();
31963196
}
@@ -3219,7 +3219,7 @@ static term nif_ets_insert(Context *ctx, int argc, term argv[])
32193219
case EtsPermissionDenied:
32203220
RAISE_ERROR(BADARG_ATOM);
32213221
case EtsAllocationFailure:
3222-
RAISE_ERROR(MEMORY_ATOM);
3222+
RAISE_ERROR(OUT_OF_MEMORY_ATOM);
32233223
default:
32243224
AVM_ABORT();
32253225
}
@@ -3243,7 +3243,7 @@ static term nif_ets_lookup(Context *ctx, int argc, term argv[])
32433243
case EtsPermissionDenied:
32443244
RAISE_ERROR(BADARG_ATOM);
32453245
case EtsAllocationFailure:
3246-
RAISE_ERROR(MEMORY_ATOM);
3246+
RAISE_ERROR(OUT_OF_MEMORY_ATOM);
32473247
default:
32483248
AVM_ABORT();
32493249
}
@@ -3271,7 +3271,7 @@ static term nif_ets_lookup_element(Context *ctx, int argc, term argv[])
32713271
case EtsPermissionDenied:
32723272
RAISE_ERROR(BADARG_ATOM);
32733273
case EtsAllocationFailure:
3274-
RAISE_ERROR(MEMORY_ATOM);
3274+
RAISE_ERROR(OUT_OF_MEMORY_ATOM);
32753275
default:
32763276
AVM_ABORT();
32773277
}
@@ -3295,7 +3295,7 @@ static term nif_ets_delete(Context *ctx, int argc, term argv[])
32953295
case EtsPermissionDenied:
32963296
RAISE_ERROR(BADARG_ATOM);
32973297
case EtsAllocationFailure:
3298-
RAISE_ERROR(MEMORY_ATOM);
3298+
RAISE_ERROR(OUT_OF_MEMORY_ATOM);
32993299
default:
33003300
AVM_ABORT();
33013301
}

0 commit comments

Comments
 (0)