File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -159,11 +159,11 @@ void ObjectValue::read_object(DebugInfoReadStream* stream) {
159
159
}
160
160
161
161
void ObjectValue::write_on (DebugInfoWriteStream* stream) {
162
- if (_visited ) {
162
+ if (is_visited () ) {
163
163
stream->write_int (OBJECT_ID_CODE);
164
164
stream->write_int (_id);
165
165
} else {
166
- _visited = true ;
166
+ set_visited ( true ) ;
167
167
stream->write_int (is_auto_box () ? AUTO_BOX_OBJECT_CODE : OBJECT_CODE);
168
168
stream->write_int (_id);
169
169
_klass->write_on (stream);
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 1997, 2019 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 1997, 2021 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
@@ -149,7 +149,7 @@ class ObjectValue: public ScopeValue {
149
149
bool is_visited () const { return _visited; }
150
150
151
151
void set_value (oop value);
152
- void set_visited (bool visited) { _visited = false ; }
152
+ void set_visited (bool visited) { _visited = visited ; }
153
153
154
154
// Serialization of debugging information
155
155
void read_object (DebugInfoReadStream* stream);
You can’t perform that action at this time.
0 commit comments