Skip to content

Commit c9051f1

Browse files
committed
Merge pull request #1549 from TheSobkiewicz/thesobkiewicz/nifs/ets/out_of_memory
Changed memory_atom to out_of_memory atom in ets implementation Fixed wrong atom in ets implementation. These changes are made under both the "Apache 2.0" and the "GNU Lesser General Public License 2.1 or later" license terms (dual license). SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
2 parents 8d71042 + 321a1b5 commit c9051f1

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)