Skip to content

Instantly share code, notes, and snippets.

Index: src/jattach.c
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- src/jattach.c (revision 09e208d593344430de0bb7b4e72273cef93b29ff)
+++ src/jattach.c (revision )
@@ -150,6 +150,16 @@
return 1;
}
cmake_minimum_required(VERSION 3.6)
project(hotspot)
set(CMAKE_CXX_STANDARD 98)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_GNU_SOURCE \
-D_REENTRANT \
-DLINUX -DINCLUDE_SUFFIX_OS=_linux -DVM_LITTLE_ENDIAN \
-DTARGET_COMPILER_gcc \
-DAMD64 -DHOTSPOT_LIB_ARCH='amd64' -DINCLUDE_SUFFIX_CPU=_x86 -D_LP64 -DTARGET_ARCH_x86 \
-DCOMPILER1 -DCOMPILER2")
package playground;
import org.openjdk.jmh.annotations.*;
import java.util.concurrent.TimeUnit;
import java.util.function.Supplier;
@BenchmarkMode(Mode.AverageTime)
@OutputTimeUnit(TimeUnit.NANOSECONDS)
@State(Scope.Benchmark)
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.ThreadLocalRandom;
import java.util.concurrent.TimeUnit;
import java.util.function.Supplier;
public class Main {
volatile Object consumer;
package org.qwwdfsad.benchmarks;
import org.openjdk.jmh.annotations.*;
import java.util.concurrent.TimeUnit;
import java.util.stream.IntStream;
/**
* @author Tolstopyatov Vsevolod
* @since 01/10/16
package org.qwwdfsad.benchmarks
import org.openjdk.jmh.annotations.*
import java.util.concurrent.TimeUnit
/**
* @author Tolstopyatov Vsevolod
* @since 29/09/16
*/
@Fork(value = 2) //jvmArgsAppend = arrayOf("-XX:TieredStopAtLevel=1"))
# Run complete. Total time: 00:04:12
Benchmark (power) Mode Cnt Score Error Units
PowBenchmark2.cross 2 avgt 5 3.318 ± 0.257 ns/op
PowBenchmark2.cross 3 avgt 5 3.929 ± 0.362 ns/op
PowBenchmark2.cross 4 avgt 5 5.105 ± 0.329 ns/op
PowBenchmark2.cross 5 avgt 5 6.392 ± 0.888 ns/op
PowBenchmark2.cross 6 avgt 5 6.109 ± 0.910 ns/op
PowBenchmark2.cross 7 avgt 5 6.497 ± 0.800 ns/op
PowBenchmark2.cross 8 avgt 5 6.791 ± 0.862 ns/op
diff --git a/src/share/vm/gc/g1/g1EvacFailure.cpp b/src/share/vm/gc/g1/g1EvacFailure.cpp
--- a/src/share/vm/gc/g1/g1EvacFailure.cpp
+++ b/src/share/vm/gc/g1/g1EvacFailure.cpp
@@ -216,14 +216,14 @@
}
bool doHeapRegion(HeapRegion *hr) {
- bool during_initial_mark = _g1h->collector_state()->during_initial_mark_pause();
- bool during_conc_mark = _g1h->collector_state()->mark_in_progress();
-
@qwwdfsad
qwwdfsad / BitSetBenchmark.java
Last active May 10, 2016 10:00
BitSet vs OpenBitSet performance
package ru.qwwdfsad.benchmarks;
import org.apache.lucene.util.OpenBitSet;
import org.openjdk.jmh.annotations.*;
import java.util.BitSet;
import java.util.concurrent.ThreadLocalRandom;
import java.util.concurrent.TimeUnit;
@BenchmarkMode(Mode.Throughput)
package ru.qwwdfsad.benchmarks;
import org.apache.lucene.util.OpenBitSet;
import org.openjdk.jmh.annotations.*;
import java.util.BitSet;
import java.util.concurrent.ThreadLocalRandom;
import java.util.concurrent.TimeUnit;
@BenchmarkMode(Mode.Throughput)