Blame SOURCES/jdk8226318-rh1738637-class_lookup_crash.patch
|
|
5a21c7 |
# HG changeset patch
|
|
|
5a21c7 |
# User mbalao
|
|
|
5a21c7 |
# Date 1560878590 10800
|
|
|
5a21c7 |
# Tue Jun 18 14:23:10 2019 -0300
|
|
|
5a21c7 |
# Node ID d790adc3bb57a28b26502814839a9308112a35a0
|
|
|
5a21c7 |
# Parent c066fa11f8ede0ab75742aba76823341d8e36e87
|
|
|
5a21c7 |
8226318: Class Loader Dependencies improvements
|
|
|
5a21c7 |
Reviewed-by: adinn
|
|
|
5a21c7 |
|
|
|
5a21c7 |
diff --git openjdk.orig/hotspot/src/share/vm/classfile/classLoaderDependencies.cpp openjdk/hotspot/src/share/vm/classfile/classLoaderDependencies.cpp
|
|
|
5a21c7 |
--- openjdk.orig/hotspot/src/share/vm/classfile/classLoaderDependencies.cpp
|
|
|
5a21c7 |
+++ openjdk/hotspot/src/share/vm/classfile/classLoaderDependencies.cpp
|
|
|
5a21c7 |
@@ -76,6 +76,7 @@
|
|
|
5a21c7 |
|
|
|
5a21c7 |
// Must handle over GC points
|
|
|
5a21c7 |
assert (last != NULL, "dependencies should be initialized");
|
|
|
5a21c7 |
+ objArrayHandle head_handle(THREAD, list_head);
|
|
|
5a21c7 |
objArrayHandle last_handle(THREAD, last);
|
|
|
5a21c7 |
|
|
|
5a21c7 |
// Create a new dependency node with fields for (class_loader, next)
|
|
|
5a21c7 |
@@ -86,7 +87,7 @@
|
|
|
5a21c7 |
objArrayHandle new_dependency(THREAD, deps);
|
|
|
5a21c7 |
|
|
|
5a21c7 |
// Add the dependency under lock
|
|
|
5a21c7 |
- ClassLoaderDependencies::locked_add(objArrayHandle(THREAD, list_head),
|
|
|
5a21c7 |
+ ClassLoaderDependencies::locked_add(head_handle,
|
|
|
5a21c7 |
last_handle,
|
|
|
5a21c7 |
new_dependency,
|
|
|
5a21c7 |
THREAD);
|