mirror of
https://github.com/corda/corda.git
synced 2025-01-21 03:55:00 +00:00
fix GC safety issue in MyClasspath::updatePackageMap
This commit is contained in:
parent
e8f8ebdc67
commit
5dcf6eae5a
@ -756,6 +756,7 @@ class MyClasspath : public Classpath {
|
|||||||
RUNTIME_ARRAY_BODY(packageName)[length] = 0;
|
RUNTIME_ARRAY_BODY(packageName)[length] = 0;
|
||||||
|
|
||||||
object key = vm::makeByteArray(t, "%s", packageName);
|
object key = vm::makeByteArray(t, "%s", packageName);
|
||||||
|
PROTECT(t, key);
|
||||||
|
|
||||||
hashMapRemove
|
hashMapRemove
|
||||||
(t, root(t, Machine::PackageMap), key, byteArrayHash,
|
(t, root(t, Machine::PackageMap), key, byteArrayHash,
|
||||||
|
Loading…
Reference in New Issue
Block a user