Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 991b34a

Browse files
java6: fix sync missing in recording task
1 parent e38b759 commit 991b34a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

java6/src/main/java/io/perfmark/java6/SynchronizedMarkHolder.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,17 +178,17 @@ public synchronized void attachTag(long gen, String tagName, long tagId) {
178178
}
179179

180180
@Override
181-
public void attachKeyedTag(long gen, String name, long value0) {
181+
public synchronized void attachKeyedTag(long gen, String name, long value0) {
182182
writeNs(gen + TAG_KEYED_N1S1_OP, value0, name);
183183
}
184184

185185
@Override
186-
public void attachKeyedTag(long gen, String name, String value) {
186+
public synchronized void attachKeyedTag(long gen, String name, String value) {
187187
writeSs(gen + TAG_KEYED_N0S2_OP, name, value);
188188
}
189189

190190
@Override
191-
public void attachKeyedTag(long gen, String name, long value0, long value1) {
191+
public synchronized void attachKeyedTag(long gen, String name, long value0, long value1) {
192192
writeNns(gen + TAG_KEYED_N2S1_OP, value0, value1, name);
193193
}
194194

0 commit comments

Comments
 (0)