File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
src/hotspot/share/runtime Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -2928,7 +2928,11 @@ class Freeze {
2928
2928
_cont.e_add_refs (_oops);
2929
2929
}
2930
2930
2931
- if (!is_chunk ()) {
2931
+ _chunk = chunkh ();
2932
+
2933
+ if (is_chunk ()) {
2934
+ _top_address = (intptr_t *)InstanceStackChunkKlass::start_of_stack (_chunk) + jdk_internal_misc_StackChunk::sp (_chunk); // TODO: add method to jdk_internal_misc_StackChunk
2935
+ } else {
2932
2936
_cont.add_size (_size); // chunk's size has already been added when originally freezing it
2933
2937
}
2934
2938
@@ -2942,11 +2946,6 @@ class Freeze {
2942
2946
2943
2947
// java_lang_Continuation::set_tail(_cont.mirror(), _cont.tail()); -- doesn't seem to help
2944
2948
2945
- if (is_chunk ()) {
2946
- _chunk = chunkh ();
2947
- _top_address = (intptr_t *)InstanceStackChunkKlass::start_of_stack (_chunk) + jdk_internal_misc_StackChunk::sp (_chunk); // TODO: add method to jdk_internal_misc_StackChunk
2948
- }
2949
-
2950
2949
#ifdef ASSERT
2951
2950
hframe orig_top_frame = _cont.last_frame <mode_slow>();
2952
2951
bool empty = _cont.is_empty ();
You can’t perform that action at this time.
0 commit comments