/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
#include "precompiled.hpp"
#include "memory/universe.hpp"
#include "oops/oop.inline.hpp"
#include "classfile/symbolTable.hpp"
#include "prims/whitebox.hpp"
#include "prims/wbtestmethods/parserTests.hpp"
#include "runtime/interfaceSupport.hpp"
#ifndef SERIALGC
#include "gc_implementation/g1/concurrentMark.hpp"
#include "gc_implementation/g1/g1CollectedHeap.inline.hpp"
#include "gc_implementation/g1/heapRegionRemSet.hpp"
#endif // !SERIALGC
#include "services/memTracker.hpp"
return heapOopSize;
#ifndef SERIALGC
return hr->isHumongous();
return cm->concurrent_marking_in_progress();
#endif // !SERIALGC
// Alloc memory using the test memory type so that we can use that to see if
// NMT picks it up correctly
}
return addr;
// Free the memory allocated by NMTAllocTest
}
return addr;
// Block until the current generation of NMT data to be merged, used to reliably test the NMT feature
return false;
}
return MemTracker::wbtest_wait_for_data_merge();
//Some convenience methods to deal with objects from java
//Get the class of our object
//Turn it into an instance-klass
//Create symbols to look for in the class
THREAD);
//To be filled in with an offset of the field we're looking for
name_symbol->as_C_string());
fatal("Invalid layout of preloaded class");
}
//fetch the field at the offset we've found
return dest_offset;
}
return NULL;
}
return ret;
}
int offset =
return ret;
}
#define CC (char*)
{CC "parseCommandLine",
(void*) &WB_ParseCommandLine
},
#ifndef SERIALGC
#endif // !SERIALGC
};
{
if (WhiteBoxAPI) {
// Make sure that wbclass is loaded by the null classloader
if (result == 0) {
}
}
}
}