#ifdefined(__APPLE__) && defined(COMPATIBLE_CDS_ALIGNMENT) #define HAVE_CDS_CORE_REGION_ALIGNMENT 1 inline size_t os::cds_core_region_alignment() { // Core region alignment is 16K to be able to run binaries built on MacOS x64 // on MacOS aarch64. return (16*K);
} #endif
// See http://www.technovelty.org/code/c/reading-rdtsc.htl for details inline jlong os::rdtsc() { #ifndef AMD64 // 64 bit result in edx:eax
uint64_t res;
__asm__ __volatile__ ("rdtsc" : "=A" (res)); return (jlong)res; #else
uint64_t res;
uint32_t ts1, ts2;
__asm__ __volatile__ ("rdtsc" : "=a" (ts1), "=d" (ts2));
res = ((uint64_t)ts1 | (uint64_t)ts2 << 32); return (jlong)res; #endif// AMD64
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.