mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-22 03:54:33 +02:00
8150607: Clean up CompactHashtable
Refactored code, and added test cases for serviceability agent Reviewed-by: jiangli, ccheung
This commit is contained in:
parent
16c430d2b6
commit
6526d15d6e
18 changed files with 808 additions and 494 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -355,6 +355,9 @@ public:
|
|||
// Read/write the void pointer pointed to by p.
|
||||
virtual void do_ptr(void** p) = 0;
|
||||
|
||||
// Read/write the 32-bit unsigned integer pointed to by p.
|
||||
virtual void do_u4(u4* p) = 0;
|
||||
|
||||
// Read/write the region specified.
|
||||
virtual void do_region(u_char* start, size_t size) = 0;
|
||||
|
||||
|
@ -363,6 +366,10 @@ public:
|
|||
// for verification that sections of the serialized data are of the
|
||||
// correct length.
|
||||
virtual void do_tag(int tag) = 0;
|
||||
|
||||
bool writing() {
|
||||
return !reading();
|
||||
}
|
||||
};
|
||||
|
||||
class SymbolClosure : public StackObj {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue