Skip to content

8293170: Improve encoding of the debuginfo nmethod section #10025

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 19 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/hotspot/share/code/compressedStream.hpp
Original file line number Diff line number Diff line change
@@ -118,7 +118,7 @@ class CompressedSparseData : public ResourceObj {
size_t _bit_position {0}; // current bit offset

public:
CompressedSparseData(int position = 0) {
explicit CompressedSparseData(int position = 0) {
_position = position;
}
};
@@ -198,15 +198,15 @@ class CompressedSparseDataWriteStream : public CompressedSparseData {
public:
// Start grouped data. Return a byte offset position in the stream where grouped data begins
int start_scope() {
align(); // a side effect!
align();
return _position;
}

// Roll the stream state back to the given position
void roll_back(int pos) {
assert(pos <= _position, "new position must be rollback the current position");
_position = pos;
_bit_position = 0;
assert(_position < _size, "set_position is only used for rollback");
}

// Return the number of bytes used
2 changes: 1 addition & 1 deletion test/hotspot/gtest/code/test_debugInfoCompression.cpp
Original file line number Diff line number Diff line change
@@ -91,7 +91,7 @@ class CompressedSparseDataWriteStreamTest {
void check_buffer_grow() {
ResourceMark rm;
DebugInfoWriteStream out(NULL, 100);
out.roll_back(99);
for (int i = 0; i < 99; i++) { out.write_int(1); }
out.write_int(0);
out.align();
out.write_int(1);