fix GC safety issue in MyClasspath::updatePackageMap

This commit is contained in:
Joel Dice 2013-02-03 20:29:24 -07:00
parent e8f8ebdc67
commit 5dcf6eae5a

View File

@ -756,6 +756,7 @@ class MyClasspath : public Classpath {
RUNTIME_ARRAY_BODY(packageName)[length] = 0;
object key = vm::makeByteArray(t, "%s", packageName);
PROTECT(t, key);
hashMapRemove
(t, root(t, Machine::PackageMap), key, byteArrayHash,