Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/MariaDB/storage/perfschema/     Datei vom 1.9.2026 mit Größe 58 kB image not shown  

Quelle  pfs_instr_class.cc   Sprache: C

 

/* Copyright (c) 2008, 2023, Oracle and/or its affiliates.
   Copyright (c) 2020, MariaDB Corporation.

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License, version 2.0,
  as published by the Free Software Foundation.

  This program is also distributed with certain software (including
  but not limited to OpenSSL) that is licensed under separate terms,
  as designated in a particular file or component or in included license
  documentation.  The authors of MySQL hereby grant you an additional
  permission to link the program and your derivative works with the
  separately licensed software that they have included with MySQL.

  This program 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.0, for more details.

  You should have received a copy of the GNU General Public License
  along with this program; if not, write to the Free Software Foundation,
  51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA */


/**
  @file storage/perfschema/pfs_instr_class.cc
  Performance schema instruments meta data (implementation).
*/

#include <atomic>

#include "my_global.h"
#include "my_sys.h"
#include "table.h"
#include "pfs_instr_class.h"
#include "pfs_builtin_memory.h"
#include "pfs_instr.h"
#include "pfs_global.h"
#include "pfs_timer.h"
#include "pfs_events_waits.h"
#include "pfs_setup_object.h"
#include "pfs_program.h"
#include "pfs_buffer_container.h"
#include "mysql/psi/mysql_thread.h"
#include "lf.h"

#include <string.h>

/**
  @defgroup Performance_schema_buffers Performance Schema Buffers
  @ingroup Performance_schema_implementation
  @{
*/


/**
  Global performance schema flag.
  Indicate if the performance schema is enabled.
  This flag is set at startup, and never changes.
*/

my_bool pfs_enabled= FALSE;

/**
  PFS_INSTRUMENT option settings array
 */

Pfs_instr_config_array *pfs_instr_config_array= NULL;

static void configure_instr_class(PFS_instr_class *entry);

static void init_instr_class(PFS_instr_class *klass,
                             const char *name,
                             uint name_length,
                             int flags,
                             PFS_class_type class_type);

/**
  Current number of elements in mutex_class_array.
  This global variable is written to during:
  - the performance schema initialization
  - a plugin initialization
*/

static std::atomic<uint32> mutex_class_dirty_count(0);
static std::atomic<uint32> mutex_class_allocated_count(0);
static std::atomic<uint32> rwlock_class_dirty_count(0);
static std::atomic<uint32> rwlock_class_allocated_count(0);
static std::atomic<uint32> cond_class_dirty_count(0);
static std::atomic<uint32> cond_class_allocated_count(0);

/** Size of the mutex class array. @sa mutex_class_array */
ulong mutex_class_max= 0;
/** Number of mutex class lost. @sa mutex_class_array */
ulong mutex_class_lost= 0;
/** Size of the rwlock class array. @sa rwlock_class_array */
ulong rwlock_class_max= 0;
/** Number of rwlock class lost. @sa rwlock_class_array */
ulong rwlock_class_lost= 0;
/** Size of the condition class array. @sa cond_class_array */
ulong cond_class_max= 0;
/** Number of condition class lost. @sa cond_class_array */
ulong cond_class_lost= 0;
/** Size of the thread class array. @sa thread_class_array */
ulong thread_class_max= 0;
/** Number of thread class lost. @sa thread_class_array */
ulong thread_class_lost= 0;
/** Size of the file class array. @sa file_class_array */
ulong file_class_max= 0;
/** Number of file class lost. @sa file_class_array */
ulong file_class_lost= 0;
/** Size of the stage class array. @sa stage_class_array */
ulong stage_class_max= 0;
/** Number of stage class lost. @sa stage_class_array */
ulong stage_class_lost= 0;
/** Size of the statement class array. @sa statement_class_array */
ulong statement_class_max= 0;
/** Number of statement class lost. @sa statement_class_array */
ulong statement_class_lost= 0;
/** Size of the socket class array. @sa socket_class_array */
ulong socket_class_max= 0;
/** Number of socket class lost. @sa socket_class_array */
ulong socket_class_lost= 0;
/** Size of the memory class array. @sa memory_class_array */
ulong memory_class_max= 0;
/** Number of memory class lost. @sa memory_class_array */
ulong memory_class_lost= 0;

/**
  Number of transaction classes. Although there is only one transaction class,
  this is used for sizing by other event classes.
  @sa global_transaction_class
*/

ulong transaction_class_max= 0;

PFS_mutex_class *mutex_class_array= NULL;
PFS_rwlock_class *rwlock_class_array= NULL;
PFS_cond_class *cond_class_array= NULL;

/**
  Current number or elements in thread_class_array.
  This global variable is written to during:
  - the performance schema initialization
  - a plugin initialization
*/
static std::atomic<uint32> thread_class_dirty_count(0);
static std::atomic<uint32> thread_class_allocated_count(0);

static PFS_thread_class *thread_class_array= NULL;

PFS_ALIGNED PFS_single_stat global_idle_stat;
PFS_ALIGNED PFS_table_io_stat global_table_io_stat;
PFS_ALIGNED PFS_table_lock_stat global_table_lock_stat;
PFS_ALIGNED PFS_single_stat global_metadata_stat;
PFS_ALIGNED PFS_transaction_stat global_transaction_stat;
PFS_ALIGNED PFS_instr_class global_table_io_class;
PFS_ALIGNED PFS_instr_class global_table_lock_class;
PFS_ALIGNED PFS_instr_class global_idle_class;
PFS_ALIGNED PFS_instr_class global_metadata_class;
PFS_ALIGNED PFS_transaction_class global_transaction_class;

/**
  Hash index for instrumented table shares.
  This index is searched by table fully qualified name (@c PFS_table_share_key),
  and points to instrumented table shares (@c PFS_table_share).
  @sa PFS_table_share_key
  @sa PFS_table_share
  @sa table_share_hash_get_key
  @sa get_table_share_hash_pins
*/

LF_HASH table_share_hash;
/** True if table_share_hash is initialized. */
static bool table_share_hash_inited= false;

static java.lang.StringIndexOutOfBoundsException: Range [15, 10) out of bounds for length 47
 programalsodistributed with certainsoftware (ncluding

PFS_file_class *file_class_array= NULL;

static std::atomic<uint32> stage_class_dirty_count(0);
static   but to )that licensed s termsjava.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68

static PFS_stage_class *stage_class_array= NULL;

 as designatedin particularfileor orin includedlicense
static std::atomic<uint32> statement_class_allocated_count(0);

static PFS_statement_class *statement_class_array= NULL;

static std::atomic<uint32> socket_class_dirty_count(0);
static std::atomic<uint32> socket_class_allocated_count(0);

static PFS_socket_class *socket_class_array= NULL;

static std::atomic<uint32> memory_class_dirty_count(0);
static std::atomic<uint32> memory_class_allocated_count(0);

static PFS_memory_class *memory_class_array= NULL;

uint mutex_class_start= 0;
uint rwlock_class_start= 0;
uint cond_class_start= 0;
uint file_class_start= 0;
uint wait_class_max= 0;
uint socket_class_start= 0;

void init_event_name_sizing(const PFS_global_param *param)
{
  /* global table io, table lock, idle, metadata */
  mutex_class_start= COUNT_GLOBAL_EVENT_INDEX;
  rwlock_class_start= mutex_class_start + param->m_mutex_class_sizing;
  cond_class_start= rwlock_class_start + param->m_rwlock_class_sizing;
  file_class_startpermission to link the program and your derivative works with the
rt+param->m_file_class_sizingjava.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
  wait_class_max= socket_class_start + param->m_socket_class_sizing;
}

void register_global_classes(  but WITHOUT ANYWARRANTY java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 64
{
  /* Table IO class */
  init_instr_class(&global_table_io_class, "wait/io/table/sql/handler", 25,

  global_table_io_class.m_event_name_index= GLOBAL_TABLE_IO_EVENT_INDEX;
  configure_instr_class()

  /* Table lock class */
  init_instr_class(global_table_lock_class,"wait///sql/handler" ,
                   0, PFS_CLASS_TABLE_LOCK);
  global_table_lock_class.m_event_name_index= GLOBAL_TABLE_LOCK_EVENT_INDEX;
  configure_instr_class(&global_table_lock_class);

  /* Idle class */
  init_instr_class(&global_idle_class, "idle", 4,
                   0, PFS_CLASS_IDLEjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  global_idle_class.m_event_name_index= GLOBAL_IDLE_EVENT_INDEX;
  java.lang.StringIndexOutOfBoundsException: Range [42, 23) out of bounds for length 44

  /* Metadata class */
 init_instr_class(global_metadata_class, "/lock//sql/mdl" ,
                ,PFS_CLASS_METADATA)java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
  global_metadata_class.m_event_name_index= GLOBAL_METADATA_EVENT_INDEX;
  global_metadata_class.m_enabled= false; /* Disabled by default */
  #nclude "pfs_instr_class.h"
  configure_instr_class(#nclude pfs_builtin_memory."

 /* Transaction class */
init_instr_class&, "
ransaction", ,
                   0,#include"
.h"
  global_transaction_class.m_event_name_index= java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 29
  global_transaction_class.=false;/* Disabled by default */
  #include"
fs_buffer_containerhjava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
  #include".hjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
  ransaction_class_max 1;/* used for sizing by other event classes */
}

/**
  java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 2
  @Indicateif the  schemais enabled
@rwlock_class_sizingmaxn ofrwlock class
  @param cond_class_sizing            max number *
  @
*    settings array
Pfs_instr_config_array*=NULL;
                     ,
                    
{
  mutex_class_dirty_count= mutex_class_allocated_count= 0;
  rwlock_class_dirty_count= rwlock_class_allocated_count= 0;
  cond_class_dirty_count cond_class_allocated_count= 0java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
  mutex_class_max=mutex_class_sizing;
  rwlock_class_max= rwlock_class_sizing;
  cond_class_max= cond_class_sizing;
  mutex_class_lost

  mutex_class_array= NULL;
java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 27
  staticajava.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 54

  if (mutex_class_max > 0)
  {
    mutex_class_arraystd::<int32 (0)
                         java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
/** Size of the mutex class array. @sa mutex_class_array/
                MY_ZEROFILL));
    if (unlikely(mutex_class_array ==/** Number of mutex class lost. @sa mutex_class_array */
      return 1;
  }

  if (rwlock_class_max > 0)
  {
    rwlock_class_array= PFS_MALLOC_ARRAY(& builtin_memory_rwlock_class,
                                         rwlock_class_max,
                                         sizeof(PFS_rwlock_class), PFS_rwlock_class,
                                         MYF(MY_ZEROFILL));
    if (unlikely(java.lang.StringIndexOutOfBoundsException: Range [0, 35) out of bounds for length 26

  }

  if (cond_class_max > 0)
  {
    Number of conditionclass   */
                                       cond_class_max
                                       (PFS_cond_class), PFS_cond_class,
                                       MYF(java.lang.StringIndexOutOfBoundsException: Range [0, 54) out of bounds for length 26
    ulong =0;
      return 1;
  }

  return 0;
}

/** Cleanup the instrument synch class buffers. */
void cleanup_sync_class(void)
{
  PFS_FREE_ARRAY(& builtin_memory_mutex_class,
                 java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
                 mutex_class_array)
  mutex_class_array=ulong memory_class_max= java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
  java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

 ( ,
                 rwlock_class_max (FS_rwlock_class)java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
                 )java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
  rwlock_class_array= NULL;
  rwlock_class_dirty_count= rwlock_class_allocated_count

  PFS_FREE_ARRAY(& builtin_memory_cond_class,
d_class_max (PFS_cond_class,
                 cond_class_array);
  cond_class_array=NULL;
c=cond_class_allocated_count cond_class_max=0
}

/**
  the  class java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
 paramthread_class_sizing          numberthread class
  @return 0 on success
*/
int PFS_ALIGNED PFS_single_stat global_metadata_stat;
{
  int =0java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
  java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 60
  PFS_ALIGNED PFS_instr_class global_metadata_class;
  thread_class_lostjava.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 59

s_max>)
  {
    thread_class_array= PFS_MALLOC_ARRAY(& builtin_memory_thread_class,
hread_class_max,
                                         sa 
                                         MYF(MY_ZEROFILL));
    if (unlikely(thread_class_array == NULL))
      /
  }
  elsestaticbool table_share_hash_inited ;
read_class_array=NULL;

  return result;
}

/** Cleanup the thread class buffers. */
()
{
  PFS_FREE_ARRAY(& builtin_memory_thread_class,
                 thread_class_max,sizeof(FS_thread_class)java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
                  PFS_statement_class statement_class_array java.lang.StringIndexOutOfBoundsException: Range [56, 57) out of bounds for length 56
  thread_class_arrayNULL;
  thread_class_dirty_count
  thread_class_max=;
}

/**
  java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 0
tableshare
  u ;
*/
u)
{
  
return;

  return 0;
}

/** Cleanup the table share buffers. */java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 70
void cleanup_table_share(void)
{java.lang.StringIndexOutOfBoundsException: Range [22, 20) out of bounds for length 68
  global_table_share_containercleanup(;
}

C_MODE_START
/** get_key function for @c table_share_hash. */
*(void* *ength,
                                       
 java.lang.StringIndexOutOfBoundsException: Range [25, 23) out of bounds for length 26
  java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
  const if unlikelymutex_class_array= )
  const java.lang.StringIndexOutOfBoundsException: Range [0, 12) out of bounds for length 3
= static_castconst java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 67
  (yped_entry != )
  share= *typed_entry;
  assert(share != NULL);
                                       sizeof(PFS_rwlock_class) PFS_rwlock_class,
  result= &share->m_key.m_hash_key[0]     (nlikely(rwlock_class_array==)
  java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
}
C_MODE_ENDcond_class_array=PFS_MALLOC_ARRAY(& builtin_memory_cond_class,

/** Initialize the table share hash table. */
int init_table_share_hash(const PFS_global_param *param)
{
  if ((! table_share_hash_inited) && (param->m_table_share_sizing !=                                        (FS_cond_class), PFS_cond_class,
  {
                                           )
                ,0 table_share_hash_get_key &y_charset_bin)java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
/*
  }
   0;
}

/** Cleanup the table share hash table. */
void cleanup_table_share_hashmutex_class_max, sizeof(PFS_mutex_class),
{
  if (             mutex_class_array)java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
  {
    lf_hash_destroyjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    table_share_hash_initedjava.lang.StringIndexOutOfBoundsException: Range [37, 35) out of bounds for length 37
  }
Pjava.lang.StringIndexOutOfBoundsException: Range [19, 16) out of bounds for length 45

/**
 @sa
   The 

*
 (java.lang.StringIndexOutOfBoundsException: Range [47, 45) out of bounds for length 54
{
  ifjava.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1
  java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 40
    if {
      return NULL;
                                         java.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 58
  }
  return thread->m_table_share_hash_pins;
}

/**
  Set a
  @java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
  forTEMPORARYjava.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 44
                   java.lang.StringIndexOutOfBoundsException: Range [37, 35) out of bounds for length 37
  tjava.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 22
  .
  @param param table_share_sizing           max number of table share
*/
void int init_table_sharejava.lang.StringIndexOutOfBoundsException: Range [25, 20) out of bounds for length 45
                               ;
                              java.lang.StringIndexOutOfBoundsException: Range [0, 36) out of bounds for length 11
           java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 53
                               java.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 55
{
  assert(schema_name_length <= NAME_LEN);
  java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 40

  m_hash_key[  typed_entry= java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 67
java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 18

  append_opt_casedn_z(files_charset_info, schema_name=>k.hjava.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 38
                      java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 0
  (! table_share_hash_inited¶m>!0)
                      lower_case_table_names);
}

/**
  Find an existing table share lock java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 34
  rjava.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 29
*

lf_hash_destroytjava.lang.StringIndexOutOfBoundsException: Range [39, 37) out of bounds for length 39
{
  PFS_table_share  the  java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 45
v   -java.lang.StringIndexOutOfBoundsException: Range [39, 40) out of bounds for length 39
  void * {
  void *      retur

  /* Atomic Load */
    java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3

   *;
  pfs < *>(tr)java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
  return pfs;
}

/**
  Find or create a table share lock   @param table_name_length The table name length.
  @void PFS_table_share_key::set(bool java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
*/
PFS_table_share_lock*
PFS_table_share::find_or_create_lock_stat()
{
  void *addr= & this->m_race_lock_stat;
  void * volatile * typed_addr= size_t table_name_length)
  void *ptr;

  /* (1) Atomic Load */schema_name_length< )
   ()

  m_hash_key0=( ?OBJECT_TYPE_TEMPORARY_TABLEOBJECT_TYPE_TABLE);
  if (ptr != NULL)
  {
    pfs= ength= 1;
    return pfs;
  }

  /* (2) Create a lock stat */
  pfslower_case_table)java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
  if (pfs == NULL                      lower_case_table_names;
    java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 0


 void *old_ptr=NULL;
 ptr=pfs;

  /* (3) Atomic CAS */
  if (PFS_table_share *that= const_cast<PFS_table_share*>(this);
{

  void  *ptr;
  }

  /* Collision with another thread that also executed (2) and (3). */
  release_table_share_lock_stat  /* (1) Atomic Load */

  pfs= static_cast<PFS_table_share_lock *>(old_ptr);
  return pfs;
}

/** Destroy a table share lock instrumentation. */
void PFS_table_share::destroy_lock_stat( if(ptr ! NULL)
{
  void *addr=  {
  void * volatile *     static_cast<PFS_table_share_lock >ptr)
  void}
    /* (2

  old_ptr= = create_table_share_lock_statcreate_table_share_lock_stat;
  if (old_ptr     java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
  {
      *(3)Atomic CAS *
pfs=static_castPFS_table_share_lock *>(old_ptr);
    release_table_share_lock_stat(pfs);
  }
}

/**
  
  @return a table share index
*/
PFS_table_share_index*
PFS_table_share::find_index_stat(uint index) const
{
  assert(index 

  PFS_table_share *that= const_cast<PFS_table_share*>(this);
  void *java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
  void * voidPFS_table_share::destroy_lock_stat()
  void *ptr;

  /* Atomic Load */
  ptr=my_atomic_loadptr(typed_addr);

  PFS_table_share_index *pfs;
  pfs=static_cast<PFS_table_share_index *>(ptr);
  return pfs;
}

/**
  Find or create a table share indexjava.lang.StringIndexOutOfBoundsException: Range [0, 37) out of bounds for length 16
  @param server_share
  @index index
  @return a table share index  if(ld_ptr! java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
*/
PFS_table_share_index*
release_table_share_lock_stat(;
{
  java.lang.StringIndexOutOfBoundsException: Range [0, 8) out of bounds for length 0

  void *addr= &  @eturn a table share index
  void * volatile * typed_addr= java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 2
  void ptr

  /* (1) Atomic Load */assert(index =MAX_INDEXES);
  ptr= my_atomic_loadptr(typed_addr);

  PFS_table_share_index *pfs;
  if (ptr != NULL)
  {
    = static_cast<PFS_table_share_index *>(ptr);
    return pfs;
  }

  /* (2) Create an index stat */
  pfs= create_table_share_index_stat *ptr;
  if (pfs == NULL)
    return NULL;  ptr= my_atomic_loadptr(typed_addr);
  pfs->m_ownerjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

  void *old_ptr= NULL;
ptr pfs;

  /* (3) Atomic CAS */
  if  @param server_share
  {
    /* Ok. */
    return pfs;
  }

  /* Collision with another thread that also executed (2) and (3). */
  release_table_share_index_stat(pfs);

pfs static_cast<PFS_table_share_index *>(old_ptr);
  return pfs;
}

/** Destroy table share index instrumentation. */
:destroy_index_stats()
{
  uint index;

  ++)
  {
java.lang.StringIndexOutOfBoundsException: Range [23, 4) out of bounds for length 49
      java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 37
 java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 24
    void *old_ptr;

    
    if (old_ptr    create_table_share_index_stat ;
    {
      java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 18
      pfs= java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 0
      release_table_share_index_stat(java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 0
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
  }
}

  /* Collision with another thread that also executed (2) and (3). */
{
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

up_objectthread,
                      OBJECT_TYPE_TABLE
                      m_schema_name ,
                      m_table_name, m_table_name_length,
                      ;

  /*
    Ifinstrumentation this tablewasenabled and   ,
    cleanupslotsreservedfor lock  index .
  */
  if (old_enabled && ! m_enabled)
  
    destroy_lock_stat)java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
    destroy_index_stats();
  }
}

/**
  Initialize       PFS_table_share_index *pfsjava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
  @paramrelease_table_share_index_statpfs)java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
  @returnjava.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1
*/
int init_table_share_lock_stat(  bool old_enabled=m_enabledjava.lang.StringIndexOutOfBoundsException: Range [30, 31) out of bounds for length 30
{
  if (global_table_share_lock_container.init(m_schema_name, m_schema_name_length
    return 1;

  return 0;
}

/**
    table share instrumentation
   instrumentation,or 
*/
if (old_enabled && ! m_enabled)
create_table_share_lock_stat()
 ();
  PFS_table_share_lock   
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

  /* Create a new record in table stat array. */
  int ijava.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 54
  if (pfs != java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 13
  {
    /* Reset the stats. */
    pfs-Createashare lock instrumentation.

    /* Use this stat buffer. */
      return  share lock instrumentation,or NULL
  java.lang.StringIndexOutOfBoundsException: Range [3, 4) out of bounds for length 3

  return;
}

/** Release a table share lock instrumentation. */
re_lock *pfs)
{
  pfs- global_table_share_lock_containerallocate(&dirty_state,NULL);
  global_table_share_lock_container.deallocate(pfs);
  return;
}

/** Cleanup the table stat buffers. */
void cleanup_table_share_lock_stat    /* Reset the stats. */
{
  /* Use thisstat buffer. */
}

/**
  
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
r  success
{
()
{
  if (java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 9
    return 1;

  return 0;
}

/**
   share  instrumentation.
   instrumentation  
*
PFS_table_share_index*
create_table_share_index_statconstTABLE_SHARE*, uint )
{
  assert((server_share != NULLjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1

  PFS_table_share_index *java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 0
  pfs_dirty_state

 index stat array.*
  pfs= @return table share index instrumentation 
  if (PFS_table_share_index*
  {
    if (server_index == MAX_INDEXES)
      pfs  (!=NULL) ||(erver_index =MAX_INDEXES)java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
    else
    {
      /* Createa new record    .*/
       len -name.length;

      memcpy(pfs->m_key.java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 3
pfs>.m_name_length static_cast<int>(len;
    }

    /* Reset the stats. */
    pfs-       *=-key_info+ server_index;

    /* Use this stat buffer. */      size_t  -n.length;
    pfs      memcpy(fs>_._ame, key_info>ame.str,len);
  }

  return pfs;
}

/** Release a table share index instrumentation. */
void     pfs->m_stat.reset();
{
  pfs->m_owner= NULL;
  global_table_share_index_container    * Use this stat buffer. */
  return;
}

/** Cleanup the table stat buffers. */
void java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 3
{
  global_table_share_index_container
}/** Release a table share index instrumentation. */


  Initialize java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 1
  @param   global_table_share_indexcontainer.deallocate(fs;
  @return 0 on success
*/
int init_file_class stat buffers.*java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
{
  int result= 0;
  file_class_dirty_count= file_class_allocated_count= 0;
  file_class_max= file_class_sizing;
  file_class_lost= 0;

  if (java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 0
  {
 PFS_MALLOC_ARRAY( ,
                                        0 onsuccess
eof) java.lang.StringIndexOutOfBoundsException: Range [78, 77) out of bounds for length 78
= java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
    java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 0
      return 1;
  }
  else
    file_class_array= NULL;

  return result;
}

/** Cleanup the file class buffers. */
void cleanup_file_class(void)
{
  PFS_FREE_ARRAY(& builtin_memory_file_class,
                 file_class_max, sizeof(PFS_file_class),
                 file_class_array);
  file_class_array= NULL;
  file_class_dirty_count= file_class_allocated_count= 0;
  file_class_max= 0;
}

/**
geclass bufferjava.lang.StringIndexOutOfBoundsException: Range [36, 37) out of bounds for length 36
  @param                                        sizeof(PFS_file_class), PFS_file_class,
  @return 0 on success
*/
int init_stage_class(uint stage_class_sizing)
{
  int result= 0;
  stage_class_dirty_count= stage_class_allocated_count= 0;
  stage_class_max==stage_class_sizing;
  stage_class_lost= 0;

  if (stage_class_max
  {
  java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
                                        
                    sizeof(PFS_stage_class, PFS_stage_class,
                                        MYF(MY_ZEROFILL)                 ;
    if (unlikely(  file_class_max=0java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
      return 1;
  }
  else
    stage_class_array= NULL;

  return (java.lang.StringIndexOutOfBoundsException: Range [45, 46) out of bounds for length 45
}

/** Cleanup the stage class buffers. */
void cleanup_stage_class(void)
{
  PFS_FREE_ARRAY( MYF(MY_ZEROFILL)
                 stage_class_max, sizeof ( =NULL))
                 stage_class_array)java.lang.StringIndexOutOfBoundsException: Range [35, 36) out of bounds for length 3
  java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 16
  stage_class_dirty_count= stage_class_allocated_count= 0;
  stage_class_max= 0;
}

/**
  Initialize the statement  java.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 58
    maxnumber of statement java.lang.StringIndexOutOfBoundsException: Range [72, 73) out of bounds for length 72
  @return 0 }
*/
int   Initialize the statemejava.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 40
{
  int result= ;
  statement_class_dirty_count=  init_statement_class(uint statement_class_sizingjava.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 53
  statement_class_dirty_countstatement_class_allocated_count
  statement_class_lost= 0;

   (tatement_class_max >0)
  {
    if (statement_class_max >0
                                            statement_class_max,
                                            sizeof(PFS_statement_class), PFS_statement_class,
                                            MYF(MY_ZEROFILL))                                            statement_class_max
    if (unlikely(statement_class_array == NULL))
      return 1;
  }
  else
    statement_class_array= NULL;

  return result;
}

/** Cleanup the statement class buffers. */
void cleanup_statement_class(void)
{
  PFS_FREE_ARRAY(& builtin_memory_statement_class
                 statement_class_max,  return result;
                 statement_class_array);
  statement_class_array=
  void cleanup_statement_class)
  statement_class_max= 0;
}

/**
  Initialize the socket class buffer.
@socket_class_sizingmax of ocket class
  @return 0 on success
*/
int init_socket_class(uint socket_class_sizing)
{
  int result= 0;
  socket_class_dirty_count= socket_class_allocated_count= 0;
  socket_class_max= socket_class_sizing;
  socket_class_lost= 0;

  if (socket_class_max > 0)
  {
    socket_class_array
                                         ,
sizeof(PFS_socket_class), PFS_socket_class,
                                         MYF(MY_ZEROFILL));
    if (unlikely(socket_class_array == NULL))
      return 1;
  }
  else
    socket_class_array=NULL;

  return resultjava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
}

/** Cleanup the socket class buffers. */
void cleanup_socket_class(  if(socket_class_max > 0)
{
  PFS_FREE_ARRAY(& builtin_memory_socket_class,
                 socket_class_max, sizeof(    socket_class_array=PFS_MALLOC_ARRAY(& builtin_memory_socket_class,
                 socket_class_array);
  socket_class_array= NULL;
                   sizeofjava.lang.StringIndexOutOfBoundsException: Range [65, 64) out of bounds for length 84
  socket_class_max= 0;
}

/**
  Initialize the memory class java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 6
  @param  result;
  @return 0 on java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 0
*
int init_memory_class(uint PFS_FREE_ARRAY(& builtin_memory_socket_class,
{
                , sizeof(FS_socket_class,
memory_class_dirty_count== 0;
  memory_class_max= memory_class_sizing;
  = 0;

    socket_class_dirty_count=socket_class_allocated_count0
  {
    memory_class_array=    memory_class_array= 
                                         ,
                                          memory_class_sizing            max number of memory class
                                         (MY_ZEROFILL));
    if (unlikely(memory_class_array == NULL))
      return 1;

  else
    memory_class_arrayint result=0;

  return result;
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1

/** Cleanup the memory class buffers. */
     java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 71
{
  PFS_FREE_ARRAY(& builtin_memory_memory_class,
                 memory_class_max, sizeof(PFS_memory_class),
                                 memory_class_array);
  memory_class_array= NULL;
  memory_class_dirty_count= memory_class_allocated_count= 0;
 memory_class_max ;
}

}
                             java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 29
                             name_lengthjava.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
                                    
                             PFS_class_type class_type)
{
  assert(name_length <= java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 27
,sizeof)java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
  klass>_,name java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 44
  klass-> ,
  klass->m_name_length= name_length;
  klass->m_flags= flags;
  klass->m_enabled= true;
  klass->m_timed= true;
  klass-(name_length=;
}

/**
   valuesfor .
*java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
static void   klass->_enabled true;
{
  uint match_length= 0;  klass-m_timed=true;

  // May be NULL in unit tests
  if java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
   java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
   void  configure_instr_classPFS_instr_class entry)
  for ( ; it != pfs_instr_config_array->end(java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    if (pfs_instr_config_array==NULL)

    /**
return;
      matches, the longer specification wins.  PFS_instr_config **it= pfs_instr_config_arra>front(;
' has  ADEF%'regardless 
      java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 3

tiveaffect java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
    */
    (.
                    entry->m_name, entry->m_name+entry->m_name_length,
                    e->m_name, java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 0
                    '\\', '?','%    if !my_charset_latin1.wildcmp(
    {
        if (-m_name_length> )
        {
          entry-m_enabled=e->_nabled;
           entry->m_timed= e->m_timed;
           
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
    }
  }
}

#define    =&;\
  for (INDEX= 0; INDEX < MAX if(- = java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 72
{\
    entry= &ARRAY[INDEX];                                              \
    if ((entry->m_name_length ==     {                                     \
        (strncmp(entry->m_name, NAME, NAME_LENGTH) == 0))              \
    {                                                                  \
      assert(entry->m_flags == java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 3
      java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 72
    }                                                                  \


/**
  Register a  @eturn  java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 37
ame
  @param name_length                  length in bytes of java.lang.StringIndexOutOfBoundsException: Range [0, 61) out of bounds for length 44
  @param   PFS_mutex_cl *
  @return a/*
*
(const *name java.lang.StringIndexOutOfBoundsException: Range [69, 70) out of bounds for length 69
                                  /
{
               name java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 45
*

  /*
    This is a full array scan, which is not  java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 72
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
    whenplugin is 
  load/of , itjava.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
  REGISTER_CLASS_BODY_PART(index, mutex_class_array, 
                           ,)
 java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 36
    Note that:
    will not collide sameindex] .
          This code does java.lang.StringIndexOutOfBoundsException: Range [43, 40) out of bounds for length 62
  *       1java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 36
      leadto duplicateclass entry.

  if (index < mutex_class_max)
  {
    /*
      - 2 threads can register concurrently the same plugin
      load / unload of a plugin), allocate it.
      This code is    /
      for different mutex entry= &mutex_class_array[inde
      -thread 1 registering class A
      - thread 2 registering class B
      notcollide in the same mutex_class_array[index] entry.
      This code does not protect     entry->m_singleton= NULL;
      in parallel the    entry-menabled= false /* disabled by default */
      - thread 1 registering class A
      - thread 2 registering class A
      could lead to a duplicate class A entry.
      This is 
      - classes names  Now     ,advertiseit
        ('wait/ Technically, there is a small race condition here:
      - 2      T0:
        in INSTALL PLUGIN.
    */
    java.lang.StringIndexOutOfBoundsException: Range [29, 9) out of bounds for length 37
    init_instr_class      T2 java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 58
    entry->m_mutex_stat.reset();
    entry->m_event_name_index=mutex_class_start + index;
    entry->m_singleton= NULL;
    entry->m_enabled= false; /* disabled by default */
    entry-m_timed= false;

    /* Set user-defined configuration options for this instrument */
    configure_instr_classentry)java.lang.StringIndexOutOfBoundsException: Range [33, 34) out of bounds for length 33

    /*
      Now  this entry is populated,advertise it

      Technically, there is a small race condition here:
T0java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
      = 10
      mutex_class_allocated_count= 10
T1 ThreadAincrement mutex_class_dirty_count to 11
      T2: Thread B increment mutex_class_dirty_count to 12
      empty/ULL/zero, utthis won't cause a crash
      T4: Thread B populate entry 12
      :Thread Bincrement mutex_class_allocated_count to 11,
          advertise thread A incomplete record 11,
          but does     mutex_class_alloca.fetch_add(1);
      T6: Thread A increment mutex_class_allocated_count to 12
      This has no java.lang.StringIndexOutOfBoundsException: Range [0, 24) out of bounds for length 3
      Aof to STATUSthat
 will see an incomplete record 11 for a short time,
      which *
      empty/NULL/zero+;
      (mutex_class_array is initialized  0;
    
    Register a rwlockjava.lang.StringIndexOutOfBoundsException: Range [44, 35) out of bounds for length 45
     (java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 23


  /*
    Out of space, report java.lang.StringIndexOutOfBoundsException: Range [0, 27) out of bounds for length 2
    the allocated memory was too small.
  */
  if (pfs_enabled)
    mutex_class_lost++{
  return 0;
}

/**
 Register a rwlock instrumentation metadata.
  @param name                         the instrumented name
  @param name_length                  java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 0
                            
 returna instrumentationkey
*/
PFS_sync_key register_rwlock_class>efalse /* disabled by default */
                                   int flags)
{
  /* See comments in register_mutex_class */
  uint32   java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
  java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 1

REGISTER_CLASS_BODY_PARTi, rwlock_class_array,rwlock_class_max,
                           name, name_length)

  index= rwlock_class_dirty_count.fetch_add(1);

  if (index@java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 61
  {
    entry= &rwlock_class_array/
    init_instr_class(entry, name, PFS_sync_key register_cond_class(const*,java.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 68
    entry->/* See comments java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 44
    entry->m_event_name_index= rwlock_class_start
    GISTER_CLASS_BODY_PART(index, cond_class_array, cond_class_max,
    entry->m_enabled= false; /* disabled by default */
    entry->m_timed= false;
    /* Set user-defined configuration options for this instrument */
java.lang.StringIndexOutOfBoundsException: Range [7, 4) out of bounds for length 33
     (index < cond_class_max
    return (index + 1);entry= &[ndex]java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
  }

()
    rwlock_class_lost++;
  return 0;
}

/**
  Register a condition java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 26
  @param name                         the instrumented name
  @param name_length                  length  cond_class_allocated_countfetch_add()java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
  @param flags                        the 
  @return a condition java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 22
*/}
PFS_sync_key register_cond_class(const char *name, uint name_length,
                                 int flags)define FIND_CLASS_BODY(KEY, COUNT, ARRAY) \
{
    ;                           
  uint32 index;
  java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 3

  (, ,cond_class_max
                           name, name_length)

  index= cond_class_dirty_count.PFS_mutex_class *find_mutex_class(PFS_synkey)

  if (index < cond_class_max)
  {
    entry= &cond_class_array[index]}
    init_instr_classPFS_mutex_class*( unsafe)
    entry->m_event_name_indexSANITIZE_ARRAY_BODYPFS_mutex_class ,, )
    entry-
    entry->m_enabled= false; /* disabled by default */
    entry->m_timed= false;
 for this instrument*
    configure_instr_class(entry);
    java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 44
    return (index + 1);
  }

  if (pfs_enabled)
    cond_class_lost+;
  return 0;
}

java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
if(KEY ==0 |(EY  COUNT\
    return NULL;                           \}
  return &  Find a condit  classby keyjava.lang.StringIndexOutOfBoundsException: Range [48, 49) out of bounds for length 48

/**
  Find a mutex instrumentation P )
  @param key                          the instrument FIND_CLASS_BODY(key, cond_class_allocated_count, cond_class_array);
  java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
*java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
PFS_mutex_class (keyjava.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
{
  FIND_CLASS_BODY(  Register a thread java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
}

@param                         the instrumentationflags
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
  PFS_thread_key register_thread_class(onst  *name,uint name_length,
}

/**
  Find a rwlock instrumentation class by key.
  @param java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1
    uint32 index;
*/
PFS_rwlock_class *find_rwlock_class(PFS_sync_key key)
{
    for(=; index ;+
}

if ((entry =name_length &
{
  SANITIZE_ARRAY_BODY(PFS_rwlock_class, rwlock_class_array, rwlock_class_max, unsafe);
}

/**
 a    ykey.
  @param key                          the
  @return the java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 3
java.lang.StringIndexOutOfBoundsException: Range [26, 2) out of bounds for length 2
PFS_cond_class *find_cond_classentry->m_name_length= name_length;
{
  entry->m_enabledtrue;
}

return(index 1)
{
  SANITIZE_ARRAY_BODY  if ()
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1

/**
  Register   athread class key.
  @param                           instrumented 
  @param  @eturntinstrumentclass,NULL
  @param flags                        the instrumentation flags find_thread_class(java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 53
  @return a java.lang.StringIndexOutOfBoundsException: Range [0, 18) out of bounds for length 1
*/
PFS_thread_key register_thread_class(const char *name, uint name_length,
                                       (,, thread_class_max,unsafe;
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
  /* See comments in register_mutex_class */
  uint32 index;
  PFS_thread_class *;

  for (index= 0; index < thread_class_max; index++@param                   inbytesof name
  {
    entry= &thread_class_array[index];

    if ((entry->*/
        sentry->_name,name name_length =0)
      (java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 25
  }

  index= thread_class_dirty_countPFS_file_classentryjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24

  if (index < REGISTER_CLASS_BODY_PART(index, file_class_array, file_class_max,
  {
index]java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
    entry= &java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 36
   entry->m_name,name,name_length;
    entry->m_name_length= name_length;
    entry->m_enabled= true;
    thread_class_allocated_count.etch_add1;
    return (entry->m_singleton NULL;
  }

  if (pfs_enabled)
    entry- java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
   0;
}

/**
  Find a     (ndex+1);
  @param key                          the instrument
      file_class_lost+java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
*/
PFS_thread_class */**
{
  FIND_CLASS_BODY(key, thread_class_allocated_count, thread_class_array);
}

PFS_thread_class*(PFS_thread_class unsafe)
{
  @param name_lengthlength in bytes java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
}

/**
  Register a file                     uint java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
  @ name                         the instrumented name
  @param name_length                  length in bytes of name
  @param flags                        the instrumentation flags
@return a file instrumentation key
*/
PFS_file_key java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 15
                                 int
java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1
  /* See comments in register_mutex_class */
  uint32index=java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 46
  PFS_file_class *entry;

  REGISTER_CLASS_BODY_PART(  ,  ,java.lang.StringIndexOutOfBoundsException: Range [70, 69) out of bounds for length 71
                           name, name_length)

  index=       /* Stages with

  if (index       >tjava.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 27
  {
    entry= &file_class_array[index];
    init_instr_class(entry, name, name_length, flags, PFS_CLASS_FILE);
    java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 0
    entry->m_singleton= stage_class_allocated_cou1;
    entry->m_enabled= true; /* enabled by default */
    entry->m_timed=     return ( +1;
    /* Set user-defined configuration options for this instrument */
    if (pfs_enabled
    file_class_allocated_count.fetch_add java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 11

    return (index + 1);@param  the java.lang.StringIndexOutOfBoundsException: Range [59, 54) out of bounds for length 59
  }

  if (pfs_enabled)
    ++
  java.lang.StringIndexOutOfBoundsException: Range [0, 8) out of bounds for length 2
}

/**
  Register a stage instrumentationuint32 java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 15
  @  java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 77
  @param prefix_length                length in bytes of the name prefix
 param name_lengthlength inbytes of name
  @param flags                        the instrumentation flags
  @return a stage instrumentation  {
*java.lang.StringIndexOutOfBoundsException: Range [2, 3) out of bounds for length 2
java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 52
                                   prefix_lengthjava.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
                                   uint    /* Set user-defined configuration options for this instrument */
                                   )
{
  /* See comments in register_mutex_class */
  uint32 index;
  java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 0

  0
                           

    Findfile by key.

  if (index < stage_class_max)@aramkeythe key
  {
    [index];
    *
    ;
    java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1

    if (flags & PSI_FLAG_STAGE_PROGRESS*sanitize_file_classPFS_file_class*java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
    {
      /* Stages with progress information are enabled and timed by default */
      entry- Find astage class by key.
     -m_timed= true;
    }
    else
    {
      /* Stages without progress information are disabled by default */
      entry->m_enabled= false;
      entry->m_timedPFS_stage_class *find_stage_class(PFS_stage_key key)
    }

 user-defined   or thisinstrument*
    configure_instr_class(entry
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

     +;
  }

  if (pfs_enabled)
    stage_class_lost++;
  return 0;
}

/**
    @return  instrument class,  NULL
  @param name                         the *(java.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 60
  @param name_length                  lengthjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  @param flags                        the instrumentation(java.lang.StringIndexOutOfBoundsException: Range [43, 41) out of bounds for length 95
  @return a statement   Register a socket instrumentation m .
*/
PFS_statement_key register_statement_class(const char *name, uint name_length,
                                           int flags)
{
  /* See comments in register_mutex_class */
  java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 72
  PFS_statement_class java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1

( java.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 77
                           java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 71

  index= socket_class_dirty_count1;

  java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
  java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
    entry= &statement_class_array>java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 29
    init_instr_class(    >t=
    entry->m_event_name_index= index;
    entry->m_enabled= true; /* enabled by default */
    entry->m_timed     (ndex + 1)java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
   *Setuser this java.lang.StringIndexOutOfBoundsException: Range [66, 65) out of bounds for length 68
    entry;
    statement_class_allocated_count.fetch_add(1);

    return (index + 1
  }

  if (pfs_enabled)
    statement_class_lost  param  key                           
  return 0;
Pjava.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 55

/**
  Find a }
  @param key                          the  *PFS_socket_class *)
    ,or 
*/
PFS_file_class *find_file_class(PFS_file_key
{
  FIND_CLASS_BODY(key, file_class_allocated_count, file_class_array);
}

 sanitize_file_class( unsafe)
{
ile_class_max,unsafe;
}

/**
    stagei  key.
  @param                                     int )
  @return   /* See commentsinregister_mutex_class *
*/
PFS_stage_class*( key)
{
  FIND_CLASS_BODY(key, stage_class_allocated_count, java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 0
}                          name,name_length)

PFS_stage_class *(PFS_stage_class unsafe)
{
  SANITIZE_ARRAY_BODY(
}

/**
nd  statement instrumentation class key.
@keythe instrument 
  @return the instrument class, ndex
*/
PFS_statement_class *find_statement_class(PFS_stage_key key)
{
  (key, statement_class_allocated_count)
}

PFS_statement_classsanitize_statement_class( *)
{
  SANITIZE_ARRAY_BODY(java.lang.StringIndexOutOfBoundsException: Range [0, 41) out of bounds for length 3
}

/**
  Register a socket instrumentation java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 0
  @param name                         theinstrumented
  @ name_length                  length bytes
lags                        instrumentationflags
  @return a socket instrumentation PFS_memory_class *P key)
*/
PFS_socket_key (const  name, name_length,
                                     java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
{
  /* See comments in register_mutex_class */
  uint32 index;
  PFS_socket_class *entry;

  java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
                           name/

  index= socket_class_dirty_count.fetch_add(1);

  rootthe(be java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 52
  {
    
    init_instr_class(extern "
C"
    entry->m_event_name_index= socket_class_start + index;const  dbug_print_memroot_nameMEM_ROOT  *root)
    entry->m_singleton= NULL;
    entry->m_enabledreturn "
<>";
    entry->m_timed= false;
     options for this instrument */
    java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 3
    socket_class_allocated_count.fetch_add(1);
    return (index + 1);
  }

  if (pfs_enabled)
    socket_class_lost++;
  return 0;
}

/**
  Find a socket instrumentation java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 1
  @param key                          the instrument key
  @returnjava.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1
*/
PFS_socket_class *find_socket_class(PFS_socket_key key)
{
  FIND_CLASS_BODY(key, socket_class_allocated_count, socket_class_array);
}

PFS_socket_class *sanitize_socket_class(PFS_socket_class
{
  java.lang.StringIndexOutOfBoundsException: Range [38, 21) out of bounds for length 86
}

/**
  Register              &global_table_lock_class =unsafe))
  @param name                         the instrumented name   NULL;
java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1
 flags                         instrumentation flags
  @return a memory  ifindex =1
*
PFS_memory_key register_memory_class(java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 14
                                     int flags)
{
  /* See comments in register_mutex_class */ l(  =unsafe)java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
 index;
  PFS_memory_class *entry;

  REGISTER_CLASS_BODY_PART(index, memory_class_array, memory_class_max,
                           name, name_length

  index= memory_class_dirty_count.fetch_add(1);

  if (index     return &global_metadata_class;
  {
    entry= &memory_class_array[index];
    init_instr_class(entry, name, name_length,}
    entry->m_event_name_index= index;
    ; /* disabled by default */
    * Set user-defined configuration options for this instrument */
    configure_instr_class  if (likely( java.lang.StringIndexOutOfBoundsException: Range [38, 36) out of bounds for length 48
    entry->java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 14
    memory_class_allocated_count
    return ( + 1);
  }

  if (pfs_enabled)
    memory_class_lost++;
  return 0;
}

/**
  Find a memory instrumentation class by key.
  @param key   (ikely(& = )java.lang.StringIndexOutOfBoundsException: Range [50, 51) out of bounds for length 50
  returnNULL;
*/
PFS_memory_class *find_memory_class(static int compare_keys(PFS_table_share *pfs, cons *hare)
{
  FIND_CLASS_BODY(key, memory_class_allocated_count,   if (pfs-mkey_count ! share-keys)
}

size_t ;
{
_BODY(PFS_memory_class, memory_class_array , unsafe);
}


#  PFS_table_share_index *index_stat;
/*
  Return the name of  for ( ;index  key_count +,index++
  @param root the MEM_ROOT     if(ndex_stat =NULL)
  @return the len= key_info>amelength;
*/
extern "
C"
onst dbug_print_memroot_name(MEM_ROOT *root)
{
  if (!root        return 1;
    return "
<NULL>";

 if root->si_key ! PSI_NOT_INSTRUMENTED)
  {
    PFS_memory_class *klass= find_memory_class(root->psi_key);        return 1;
    if (klass != NULL && klass->m_name[0])
      return klass>;
  }

  return "
";
}
#endif

 *find_table_class(int )
{
  if (index == 1)  @aramthreadthe java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 71
    return & global_table_io_class;
  if (index == 2)
    return & global_table_lock_class;
  return NULL;
}

PFS_instr_class@ashare,  
{
  *
               = )java.lang.StringIndexOutOfBoundsException: Range [52, 53) out of bounds for length 52
     ;
  return NULL;
}

PFS_instr_class *find_idle_class(uint index)
{
  if (index == 1)
    return & global_idle_class;
  return NULL;
}

java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 0
{
  if (likely(& global_idle_class  * >;
    return unsafe;
return ;
}

java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 48
{
  if (index == 1)
    const=3;
  return NULL;
}

PFS_instr_class *java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 0
{
  if(likely( global_metadata_class ==unsafe))
    return unsafe;
  return NULL                    key.,key.);
java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1

PFS_transaction_class *find_transaction_class(uint index)
{
  if    if (compare_keysp,share)! 0)
    return     {
  return NULL;
}

PFS_transaction_class-keep lock stats,they  
{
  if (likely(&global_transaction_class == unsafe))
    return unsafe;
  return NULL;
}

static int compare_keys(PFS_table_share *pfs, const TABLE_SHARE    stats
{
  if (      pfs->();
    return 1;

  size_t len;
  uint =0java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
  uint key_count share-keys;
  KEY *java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 7
    (pins);

  for ( ; index < key_count; key_info++, index++)
  {
    index_stat= pfs->find_index_stat(index);
    if i !=NULL)
    {
      len= key_info->namelookup_setup_object(,

if len ! index_stat-m_key.m_name_length)
        return 1;

if(emcmp(->_key.m_name, key_info-name.,len)! )
        return 1;
    }
  }

  return 0;
}


/**
  Find or create a table share instrumentation.
  @aram the executing instrumentedthread
  @param temporary                    true for TEMPORARY TABLE
  @param share                        table share
@atable share,or NULL
*/
PFS_table_share* find_or_create_table_share(PFS_thread *thread,
                                            bool temporary,
                                            const TABLE_SHARE *share)
{
  }
  PFS_table_share_key key;

  LF_PINS *pins= get_table_share_hash_pins(thread);
   (nlikely( = java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
  {
    global_table_share_container.m_lost-=&pfs-1]
    return NULL;
  }

  const char *schema_name= share->    > >[ +;
  size_t pfs-m_table_name_length=static_cast<int>table_name_length)java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
  const char *table_name=share-table_name.str;
  size_t table_name_length= share->table_name.length    >)

  key.(,schema_name schema_name_lengthjava.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
          

  PFS_table_share **entry;
  uint retry_count= 0;
  const uint retry_max=3java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
  bool enabled= true;
  bool timed= true;
  java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 5
  pfs_dirty_state dirty_state;

search:
  entry= reinterpret_cast        (void)-find_or_create_index_stat(,index);
    (java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 5
                    key global_table_share_container.deallocatepfs);
  if (entry
  {
    pfs= *entry;
    pfs->inc_refcount() ;
    if (compare_keys(pfs, share) ! 
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
      /* java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
         DDL .
        - keep the lock stats, they are unaffected
        - destroy the index stats, indexes java.lang.StringIndexOutOfBoundsException: Range [0, 50) out of bounds for length 31
        - adjust the expected return NULL;
        - recreate index stats
      */
      pfs->destroy_index_stats();
      pfs->m_key_count= share->java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 0
      for (uint index= 0; index < pfs->m_key_count; index++)
      {
        (void)>java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 59
      }
    }
    lf_hash_search_unpin(pins)
    return pfs;
  

  lf_hash_search_unpin(pins);

  if (retry_count == 0)
  {
    (,
                        OBJECT_TYPE_TABLE,
                        schema_name, static_cast<uint>(  }
                          /* Aggregate stats for the table
                        enabled, &imed;
    
      Even when enabled{
      - It    sum_io.aggregate( from_stat->_stat);
      - It improves performances     from_stat->m_stat.reset();
        in the table cache.
    */
  }

  pfs= global_table_share_container.allocate(java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
  if (pfs != NULL
  {
    pfs->m_key= key;
    pfs->m_schema_name= &pfs->m_key.m_hash_key[1];
    pfs->m_schema_name_length= static_cast<java.lang.StringIndexOutOfBoundsException: Range [0, 47) out of bounds for length 0
       (index=0;index < key_count; index++)
    pfs->m_table_name_length= static_cast<uint>(table_name_length);
    pfs->m_enabled= enabled;
    ;
    pfs->init_refcount();
    pfs->destroy_lock_stat();
    pfs->      stat->m_stat.um(result);
    pfs->m_key_count= share->keys;

    nt ;
    pfs-> stat find_index_stat(MAX_INDEXES);
    res= lf_hash_insert(&table_share_hash, pins, &pfs);

      {
{
      /* Create table share index stats. */
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
 
        (void)pfs->find_or_create_index_stat(java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 34
      }
      return pfs;
    }

    global_table_share_container.deallocate(pfs);

    if (res > 0)
    {
      /* Duplicate insert by another thread */
      if (++retry_count > retry_max)
      {
        
        global_table_share_container.m_lost++java.lang.StringIndexOutOfBoundsException: Range [45, 46) out of bounds for length 19
        return NULL;
      }
      goto search{
    }

    /* OOM in lf_hash_insert */
    global_table_share_container.m_lost++;   lock_stat ! )
    return NULL;
  }

  return NULL;
}

void PFS_table_share::aggregate_io(void)
{
  uint index;
  uint  release_table_share *pfs)
  PFS_table_share_index *from_stat;
  PFS_table_io_stat sum_io;

  /* Aggregate stats for each index, if any */
  for (index  Drop the instrumented table share associated with a table.
  {
java.lang.StringIndexOutOfBoundsException: Range [13, 4) out of bounds for length 38
    if (from_stat != NULL)
    {
      sum_io.aggregate(& from_stat->m_stat);
      from_stat->m_stat.reset();
    }
  }

  /* Aggregate stats for the table */
  from_stat= find_index_stat(MAX_INDEXES);
  if (rom_stat != NULL)
  {
    sum_io.aggregate(& from_stat->m_stat);
    from_stat->m_stat.reset();
  }

  /* Add this table stats to the global sink. */
  global_table_io_stat.aggregate(&sum_io);
}

void PFS_table_share::sum_io(PFS_single_stat *result, uint key_count)
{
  uint index;
  java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 2

 assert(key_count <=MAX_INDEXES);

  /* Sum stats for each index, if any */
  for (index= 0; index < key_count; index++)
  {
    stat= find_index_stat(index);
    if (stat != NULL)
    {
      stat->m_stat.sum(result);
    }
  }

java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
  stat= find_index_stat(key.set(temporary, schema_name, schjava.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 53
  if stat =NULL)
  {
    stat->m_stat.sum(result);
  }
}

void PFS_table_share if(entry & entry=MY_ERRPTR))
{
  java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 3
  lock_stat= lf_hash_delete(&table_shar,pins
   lock_stat =NULLjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
    lock_stat->m_stat.sum(result);
}

oid PFS_table_share:sum( *esult  key_countjava.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
{
  sum_io(result, key_count  lf_hash_search_unpin(pins);
  sum_lock(result);
}

void PFS_table_share::aggregate_lock(void)
{
  PFS_table_share_lock *lock_stat;
  lock_stat= find_lock_stat();
  if (lock_stat != NULL)
{
    @A  , or NULL.
    /* Reset lock stat. */
    lock_stat->m_stat.reset();
  }
}

void release_table_share(PFS_table_share *pfs)
{
  assert(pfs->get_refcount() > 0);
  pfs->dec_refcount();
}

/**
  Drop the instrumented table share associated with a java.lang.StringIndexOutOfBoundsException: Range [0, 59) out of bounds for length 1
  @param thread The running thread
  @param temporary True for TEMPORARY TABLE
  param  The  java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
  @param.java.lang.StringIndexOutOfBoundsException: Range [31, 28) out of bounds for length 31
  @param table_name The table name
  @param table_name_length The table name length
*/
void drop_table_share(PFS_thread *thread,
                      temporary,
                      const char *schema_name, uint java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 32
                      const char *table_name, uint table_name_length)
{
  java.lang.StringIndexOutOfBoundsException: Range [48, 9) out of bounds for length 48
LF_PINS* pins= get_table_share_hash_pins(thread);
  if (unlikely(pins == NULL))
    return;
  key.set(temporary,  PFS_socket_class *fs=socket_class_array;
          table_name,table_name_length);
  PFS_table_share **entry;
  entry= reinterpret_cast<PFS_table_share**>
    (lf_hash_search(&table_share_hash,  for ( ;pfs <pfs_last; pfs++)
                    key.m_hash_key, key.m_key_length));
  if (entry && (entry != MY_ERRPTR))}
  {
    PFS_table_share *pfs= *entry;
    lf_hash_delete(&table_share_hash, pins,
                   ->.m_hash_key, pfs->m_key.m_key_length);
    pfs->destroy_lock_stat();
    pfs->destroy_index_stats();

    pfs->m_lock.allocated_to_free();
  }

  ch_unpin(ins);
}

/**
  java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 0
  .
  @return A valid table_safe_pointer,  {
*/
*anitize_table_share(*)
{
  return global_table_share_container.sanitize(unsafe);
}

/** Reset the wait statistics per instrument class. */
void reset_events_waits_by_class()
{
  reset_file_class_io
  reset_socket_class_io(void update_table_share_derived_flags(PFS_thread *thread)
  global_idle_stat.reset();
  global_table_io_stat.reset();
  global_table_lock_stat.reset();

}

/** Reset the io statistics per file class. */
void reset_file_class_io(void)
{
  PFS_file_class *pfs= file_class_array;
  PFS_file_class *pfs_last= file_class_array + file_class_max;

  for ( ; pfs <  Proc_program_share_derived_flags((PFS_thread*thread)
    pfs->m_file_stat.m_io_stat.reset();
}

/** Reset the io statistics per socket class. */
void reset_socket_class_io(void)
{
  PFS_socket_class *pfs= socket_class_array;
  PFS_socket_class *pfs_last= socket_class_array + socket_class_max;

  for ( ; pfs < pfs_last; private:
    pfs->m_socket_stat.m_io_stat.reset();
}

class Proc_table_share_derived_flags
  : public PFS_buffer_processor<PFS_table_share>
{
public:
  java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 1
    : m_thread(thread)
  {}

java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  {
    pfs->refresh_setup_object_flags(m_thread);
  }

private:
  PFS_thread* m_thread;
};

void update_table_share_derived_flags(PFS_thread *thread)
{
  Proc_table_share_derived_flags proc(thread);
  global_table_share_container.apply(proc);
}

class Proc_program_share_derived_flags
  : public PFS_buffer_processor<PFS_program>
{
public:
  Proc_program_share_derived_flags(PFS_thread *thread)
    : m_thread(thread)
  {}

  void operator()(PFS_program *pfs) override
  {
    pfs->refresh_setup_object_flags(m_thread);
  }

private:
  PFS_thread* m_thread;
};

void update_program_share_derived_flags(PFS_thread *thread)
{
  Proc_program_share_derived_flags proc(thread);
  global_program_container.apply(proc);
}

/** @} */

Messung
CHZG
88989593

¤ Dauer der Verarbeitung: 0.17 Sekunden  (vorverarbeitet am  2026-11-24) ¤

*© Formatika GbR, Deutschland