mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8246260: JFR: Write event size field without padding
Reviewed-by: jbachorik, mgronlun
This commit is contained in:
parent
827c8865d8
commit
7d1eb8f07c
13 changed files with 259 additions and 68 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2016, 2020, 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
|
||||
|
@ -44,7 +44,6 @@ static int start_pos_offset = invalid_offset;
|
|||
static int start_pos_address_offset = invalid_offset;
|
||||
static int current_pos_offset = invalid_offset;
|
||||
static int max_pos_offset = invalid_offset;
|
||||
static int max_event_size_offset = invalid_offset;
|
||||
static int notified_offset = invalid_offset;
|
||||
static int thread_id_offset = invalid_offset;
|
||||
static int valid_offset = invalid_offset;
|
||||
|
@ -110,13 +109,6 @@ static bool setup_event_writer_offsets(TRAPS) {
|
|||
compute_offset(max_pos_offset, klass, max_pos_sym, vmSymbols::long_signature());
|
||||
assert(max_pos_offset != invalid_offset, "invariant");
|
||||
|
||||
const char max_event_size_name[] = "maxEventSize";
|
||||
Symbol* const max_event_size_sym = SymbolTable::new_symbol(max_event_size_name);
|
||||
assert (max_event_size_sym != NULL, "invariant");
|
||||
assert(invalid_offset == max_event_size_offset, "invariant");
|
||||
compute_offset(max_event_size_offset, klass, max_event_size_sym, vmSymbols::int_signature());
|
||||
assert(max_event_size_offset != invalid_offset, "invariant");
|
||||
|
||||
const char notified_name[] = "notified";
|
||||
Symbol* const notified_sym = SymbolTable::new_symbol(notified_name);
|
||||
assert (notified_sym != NULL, "invariant");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue