From 5dcf6eae5a96d24fc045bebca8f13d59e18d46a4 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Sun, 3 Feb 2013 20:29:24 -0700 Subject: [PATCH] fix GC safety issue in MyClasspath::updatePackageMap --- src/classpath-openjdk.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/classpath-openjdk.cpp b/src/classpath-openjdk.cpp index bf1dee5050..cab2d85ba0 100644 --- a/src/classpath-openjdk.cpp +++ b/src/classpath-openjdk.cpp @@ -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,