-
Notifications
You must be signed in to change notification settings - Fork 747
/
Copy pathCompositeCacheImpl.hpp
587 lines (366 loc) · 18.4 KB
/
CompositeCacheImpl.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
/*******************************************************************************
* Copyright IBM Corp. and others 2001
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
* distribution and is available at https://www.eclipse.org/legal/epl-2.0/
* or the Apache License, Version 2.0 which accompanies this distribution and
* is available at https://www.apache.org/licenses/LICENSE-2.0.
*
* This Source Code may also be made available under the following
* Secondary Licenses when the conditions for such availability set
* forth in the Eclipse Public License, v. 2.0 are satisfied: GNU
* General Public License, version 2 with the GNU Classpath
* Exception [1] and GNU General Public License, version 2 with the
* OpenJDK Assembly Exception [2].
*
* [1] https://www.gnu.org/software/classpath/license.html
* [2] https://openjdk.org/legal/assembly-exception.html
*
* SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0 OR GPL-2.0-only WITH OpenJDK-assembly-exception-1.0
*******************************************************************************/
#if !defined(COMPOSITECACHEIMPL_H_INCLUDED)
#define COMPOSITECACHEIMPL_H_INCLUDED
/* @ddr_namespace: default */
#include "OSCache.hpp"
#include "OSCachesysv.hpp"
#include "CompositeCache.hpp"
#include "sharedconsts.h"
#include "ClassDebugDataProvider.hpp"
#include "SCTransactionCTypes.h"
#include "AbstractMemoryPermission.hpp"
#define MIN_CC_SIZE 0x1000
#define MAX_CC_SIZE 0x7FFFFFF8
#if defined(WIN32)
#define J9SHR_MIN_GAP_BEFORE_METADATA 1024
/* On Windows, 1K is reserved to try and avoid a cache corruption bug.
* See SH_CompositeCacheImpl::allocate().
* Use a higher threshold on Windows.
*/
#define CC_MIN_SPACE_BEFORE_CACHE_FULL 3072
#else
#define J9SHR_MIN_GAP_BEFORE_METADATA 0
#define CC_MIN_SPACE_BEFORE_CACHE_FULL 2048
#endif
#define J9SHR_DUMMY_DATA_BYTE 0xD9
#define J9SHR_MIN_DUMMY_DATA_SIZE (sizeof(ShcItem) + sizeof(ShcItemHdr) + SHC_WORDALIGN)
#define CC_STARTUP_OK 0
#define CC_STARTUP_FAILED -1
#define CC_STARTUP_CORRUPT -2
#define CC_STARTUP_RESET -3
#define CC_STARTUP_SOFT_RESET -4
#define CC_STARTUP_NO_CACHE -5
/* How many bytes to sample from across the cache for calculating the CRC */
/* Need a value that has negligible impact on performance */
#define J9SHR_CRC_MAX_SAMPLES 100000
/**
* Represents view of the shared cache at the level of blocks of memory.
*
* Allocates memory backwards from the end of the cache, apart from segment
* memory which it allocates from the start of the cache (see allocate below).
* Provides a mutex for accessing the shared cache and functions
* for walking and reading the cache.
*/
class SH_CompositeCacheImpl : public SH_CompositeCache, public AbstractMemoryPermission
{
protected:
void *operator new(size_t size, void *memoryPtr) { return memoryPtr; };
public:
typedef char* BlockPtr;
static UDATA getRequiredConstrBytes(bool isNested, bool startupForStats);
static UDATA getRequiredConstrBytesWithCommonInfo(bool isNested, bool startupForStats);
static SH_CompositeCacheImpl* newInstance(J9JavaVM* vm, J9SharedClassConfig* sharedClassConfig, SH_CompositeCacheImpl* memForConstructor, const char* cacheName, I_32 newPersistentCacheReqd, bool startupForStats, I_8 layer);
IDATA startup(J9VMThread* currentThread, J9SharedClassPreinitConfig* piconfig, BlockPtr cacheMemoryUT, U_64* runtimeFlags, UDATA verboseFlags,
const char* rootName, const char* ctrlDirName, UDATA cacheDirPerm, U_32* actualSize, UDATA* localCrashCntr, bool isFirstStart, bool* cacheHasIntegrity);
void cleanup(J9VMThread* currentThread);
IDATA deleteCache(J9VMThread *currentThread, bool suppressVerbose);
IDATA enterReadWriteAreaMutex(J9VMThread* currentThread, BOOLEAN readOnly, UDATA* doRebuildLocalData, UDATA* doRebuildCacheData);
IDATA exitReadWriteAreaMutex(J9VMThread* currentThread, UDATA resetReason);
IDATA enterWriteMutex(J9VMThread* currentThread, bool lockCache, const char* caller);
IDATA exitWriteMutex(J9VMThread* currentThread, const char* caller, bool doDecWriteCounter=true);
void doLockCache(J9VMThread* currentThread);
void doUnlockCache(J9VMThread* currentThread);
bool isLocked(void);
IDATA enterReadMutex(J9VMThread* currentThread, const char* caller);
void exitReadMutex(J9VMThread* currentThread, const char* caller);
BlockPtr allocateBlock(J9VMThread* currentThread, ShcItem* itemToWrite, U_32 align, U_32 alignOffset);
BlockPtr allocateWithSegment(J9VMThread* currentThread, ShcItem* itemToWrite, U_32 segBufSize, BlockPtr* segBuf);
BlockPtr allocateAOT(J9VMThread* currentThread, ShcItem* itemToWrite, U_32 dataBytes);
BlockPtr allocateJIT(J9VMThread* currentThread, ShcItem* itemToWrite, U_32 dataBytes);
BlockPtr allocateWithReadWriteBlock(J9VMThread* currentThread, ShcItem* itemToWrite, U_32 readWriteBufferSize, BlockPtr* readWriteBuffer);
UDATA checkUpdates(J9VMThread* currentThread);
void doneReadUpdates(J9VMThread* currentThread, IDATA updates);
void updateStoredSegmentUsedBytes(U_32 usedBytes);
void commitUpdate(J9VMThread* currentThread, bool isCachelet);
void initBlockData(ShcItem** itemBuf, U_32 dataLen, U_16 dataType);
void rollbackUpdate(J9VMThread* currentThread);
void startCriticalUpdate(J9VMThread* currentThread);
void endCriticalUpdate(J9VMThread* currentThread);
bool isCacheCorrupt(void);
void setCorruptCache(J9VMThread *currentThread, IDATA corruptionCode, UDATA corruptValue);
bool crashDetected(UDATA* localCrashCntr);
void reset(J9VMThread* currentThread, bool canUnlockCache = true);
BlockPtr nextEntry(J9VMThread* currentThread, UDATA* staleItems);
void markStale(J9VMThread* currentThread, BlockPtr block, bool isCacheLocked);
UDATA stale(BlockPtr block);
void findStart(J9VMThread* currentThread);
void* getBaseAddress(void);
J9SharedCacheHeader* getCacheHeaderAddress(void);
void* getStringTableBase(void);
UDATA getCacheMemorySize(void);
void* getCacheEndAddress(void);
void* getCacheLastEffectiveAddress(void);
void* getSegmentAllocPtr(void);
void* getMetaAllocPtr(void);
UDATA getTotalUsableCacheSize(void);
void getMinMaxBytes(U_32 *softmx, I_32 *minAOT, I_32 *maxAOT, I_32 *minJIT, I_32 *maxJIT);
UDATA getFreeBytes(void);
UDATA getMetadataBytes(void) const;
UDATA getClassesBytes(void) const;
UDATA getFreeAvailableBytes(void);
U_32 getUsedBytes(void);
BOOLEAN isAddressInCacheDebugArea(void *address, UDATA length);
U_32 getDebugBytes(void);
U_32 getFreeDebugSpaceBytes(void);
U_32 getLineNumberTableBytes(void) const;
U_32 getLocalVariableTableBytes(void) const;
UDATA getFreeReadWriteBytes(void);
UDATA getTotalStoredBytes(void);
void getUnstoredBytes(U_32* softmxUnstoredBytes, U_32* maxAOTUnstoredBytes, U_32* maxJITUnstoredBytes) const;
UDATA getAOTBytes(void);
UDATA getJITBytes(void);
UDATA getReadWriteBytes(void);
UDATA getStringTableBytes(void);
UDATA testAndSetWriteHash(J9VMThread *currentThread, UDATA hash);
UDATA tryResetWriteHash(J9VMThread *currentThread, UDATA hash);
void setWriteHash(J9VMThread *currentThread, UDATA hash);
bool peekForWriteHash(J9VMThread *currentThread);
bool isAddressInROMClassSegment(const void* address);
bool isAddressInMetaDataArea(const void* address) const;
bool isAddressInCache(const void* address, bool includeHeaderReadWriteArea = true);
void runExitCode(J9VMThread *currentThread);
U_16 getJVMID(void);
void setInternCacheHeaderFields(J9SRP** sharedTail, J9SRP** sharedHead, U_32** totalSharedNodes, U_32** totalSharedWeight);
UDATA getReaderCount(J9VMThread* currentThread);
bool hasWriteMutex(J9VMThread* currentThread);
bool hasReadWriteMutex(J9VMThread* currentThread);
void notifyRefreshMutexEntered(J9VMThread* currentThread);
void notifyRefreshMutexExited(J9VMThread* currentThread);
bool isRunningReadOnly(void);
bool isVerbosePages(void);
bool isMemProtectEnabled(void);
bool isMemProtectPartialPagesEnabled(void);
U_32 getTotalSize(void);
UDATA getJavacoreData(J9JavaVM *vm, J9SharedClassJavacoreDataDescriptor* descriptor);
void updateMetadataSegment(J9VMThread* currentThread);
BOOLEAN isReadWriteAreaHeaderReadOnly();
SH_CompositeCacheImpl* getNext(void);
void setNext(SH_CompositeCacheImpl* next);
void setPrevious(SH_CompositeCacheImpl* previous);
SH_CompositeCacheImpl* getPrevious(void);
U_32 getBytesRequiredForItemWithAlign(ShcItem* itemToWrite, U_32 align, U_32 alignOffset);
U_32 getBytesRequiredForItem(ShcItem* itemToWrite);
J9MemorySegment* getCurrentROMSegment(void);
void setCurrentROMSegment(J9MemorySegment* segment);
BlockPtr getFirstROMClassAddress();
bool isStarted(void);
bool getIsNoLineNumberEnabled(void);
void setIsNoLineNumberEnabled(bool value);
bool getIsNoLineNumberContentEnabled(void);
void setNoLineNumberContentEnabled(J9VMThread *currentThread);
bool getIsLineNumberContentEnabled(void);
void setLineNumberContentEnabled(J9VMThread* currentThread);
UDATA getOSPageSize(void);
UDATA getOSPageSizeInHeader(void);
bool getContainsCachelets(void);
void setStringTableInitialized(bool);
bool isStringTableInitialized(void);
IDATA allocateClassDebugData(J9VMThread* currentThread, U_16 classnameLength, const char* classnameData, const J9RomClassRequirements * sizes, J9SharedRomClassPieces * pieces);
void rollbackClassDebugData(J9VMThread* currentThread, U_16 classnameLength, const char* classnameData);
void commitClassDebugData(J9VMThread* currentThread, U_16 classnameLength, const char* classnameData);
void * getClassDebugDataStartAddress(void);
IDATA startupForStats(J9VMThread* currentThread, SH_OSCache * oscache, U_64 * runtimeFlags, UDATA verboseFlags);
IDATA startupNonTopLayerForStats(J9VMThread* currentThread, const char* cacheDirName, const char* cacheName, U_32 cacheType, I_8 layer, U_64 * runtimeFlags, UDATA verboseFlags);
IDATA getNonTopLayerCacheInfo(J9JavaVM* vm, const char* ctrlDirName, UDATA groupPerm, SH_OSCache_Info *cacheInfo);
IDATA shutdownForStats(J9VMThread* currentThread);
static IDATA getNumRequiredOSLocks();
void getCorruptionContext(IDATA *corruptionCode, UDATA *corruptValue);
void setCorruptionContext(IDATA corruptionCode, UDATA corruptValue);
I_32 getFreeBlockBytes(void);
bool getIsBCIEnabled(void);
void setRuntimeCacheFullFlags(J9VMThread *currentThread);
void protectLastUnusedPages(J9VMThread *currentThread);
bool isAllRuntimeCacheFullFlagsSet(void) const;
void markReadOnlyCacheFull(void);
I_32 getAvailableReservedAOTBytes(J9VMThread *currentThread);
I_32 getAvailableReservedJITBytes(J9VMThread *currentThread);
bool isCacheMarkedFull(J9VMThread *currentThread);
void setCacheHeaderFullFlags(J9VMThread *currentThread, UDATA flags, bool setRuntimeFlags);
void clearCacheHeaderFullFlags(J9VMThread *currentThread);
void fillCacheIfNearlyFull(J9VMThread* currentThread);
bool isUsingWriteHash(void) const {
return _useWriteHash;
}
void setCacheHeaderExtraFlags(J9VMThread *currentThread, UDATA extraFlags);
bool checkCacheCompatibility(J9VMThread *currentThread);
void setAOTHeaderPresent(J9VMThread *currentThread);
bool isAOTHeaderPresent(J9VMThread *currentThread);
bool isMprotectPartialPagesSet(J9VMThread *currentThread);
bool isMprotectPartialPagesOnStartupSet(J9VMThread *currentThread);
SH_CacheAccess isCacheAccessible(void) const;
bool isRestrictClasspathsSet(J9VMThread *currentThread);
bool canStoreClasspaths(void) const;
IDATA restoreFromSnapshot(J9JavaVM* vm, const char* cacheName, bool* cacheExist);
void dontNeedMetadata(J9VMThread *currentThread);
void changePartialPageProtection(J9VMThread *currentThread, void *addr, bool readOnly, bool phaseCheck = true);
void protectPartiallyFilledPages(J9VMThread *currentThread, bool protectSegmentPage = true, bool protectMetadataPage = true, bool protectDebugDataPages = true, bool phaseCheck = true);
void unprotectPartiallyFilledPages(J9VMThread *currentThread, bool unprotectSegmentPage = true, bool unprotectMetadataPage = true, bool unprotectDebugDataPages = true, bool phaseCheck = true);
I_32 tryAdjustMinMaxSizes(J9VMThread *currentThread, bool isJCLCall = false);
void updateRuntimeFullFlags(J9VMThread* currentThread);
void increaseUnstoredBytes(U_32 blockBytes, U_32 aotBytes, U_32 jitBytes);
bool isNewCache(void);
bool updateAccessedShrCacheMetadataBounds(J9VMThread* currentThread, uintptr_t const * metadataAddress);
bool isAddressInReleasedMetaDataBounds(J9VMThread* currentThread, UDATA metadataAddress) const;
const char* getCacheUniqueID(J9VMThread* currentThread) const;
const char* getCacheName(void) const;
I_8 getLayer(void) const;
U_64 getCreateTime(void) const;
bool verifyCacheUniqueID(J9VMThread* currentThread, const char* expectedCacheUniqueID) const;
void setMetadataMemorySegment(J9MemorySegment** segment);
const char* getCacheNameWithVGen(void) const;
bool hasReadMutex(J9VMThread* currentThread) const;
U_32 getExtraStartupHints(void) const;
void setExtraStartupHints(J9VMThread* currentThread, U_32 val);
private:
J9SharedClassConfig* _sharedClassConfig;
SH_OSCache* _oscache;
omrthread_monitor_t _utMutex, _headerProtectMutex, _runtimeFlagsProtectMutex;
J9PortLibrary* _portlib;
J9SharedCacheHeader* _theca;
bool _started;
const char* _cacheName;
SH_CompositeCacheImpl* _next;
SH_CompositeCacheImpl* _previous;
SH_CompositeCacheImpl* _parent;
SH_CompositeCacheImpl* _ccHead; /* first supercache, if chained */
ShcItemHdr* _scan;
ShcItemHdr* _prevScan;
ShcItemHdr* _storedScan;
ShcItemHdr* _storedPrevScan;
BlockPtr _romClassProtectEnd;
UDATA _oldUpdateCount;
U_32 _storedSegmentUsedBytes;
U_32 _storedMetaUsedBytes;
U_32 _storedAOTUsedBytes;
U_32 _storedJITUsedBytes;
U_32 _storedReadWriteUsedBytes;
U_32 _softmxUnstoredBytes;
U_32 _maxAOTUnstoredBytes;
U_32 _maxJITUnstoredBytes;
I_32 _maxAOT;
I_32 _maxJIT;
U_64* _runtimeFlags;
UDATA _verboseFlags;
UDATA _cacheFullFlags;
U_32 _totalStoredBytes;
UDATA _lastFailedWriteHash;
U_32 _lastFailedWHCount;
BlockPtr _readWriteAreaStart;
U_32 _readWriteAreaBytes;
BlockPtr _readWriteAreaPageStart;
U_32 _readWriteAreaPageBytes;
BlockPtr _cacheHeaderPageStart;
U_32 _cacheHeaderPageBytes;
UDATA _osPageSize;
UDATA _nestedSize;
BlockPtr _nestedMemory;
UDATA _localReadWriteCrashCntr;
J9MemorySegment** _metadataSegmentPtr;
J9MemorySegment* _currentROMSegment;
bool _doReadWriteSync;
bool _doHeaderReadWriteProtect;
bool _readWriteAreaHeaderIsReadOnly;
bool _doHeaderProtect;
bool _doSegmentProtect;
bool _doMetaProtect;
bool _doPartialPagesProtect;
bool _readOnlyOSCache;
#if defined(J9VM_OPT_SHR_MSYNC_SUPPORT)
bool _doMetaSync;
bool _doHeaderSync;
bool _doSegmentSync;
#endif /* defined(J9VM_OPT_SHR_MSYNC_SUPPORT) */
IDATA _headerProtectCntr;
IDATA _readWriteProtectCntr;
IDATA _readOnlyReaderCount;
bool _incrementedRWCrashCntr;
bool _useWriteHash;
bool _canStoreClasspaths;
bool _reduceStoreContentionDisabled;
bool _initializingNewCache;
UDATA _minimumAccessedShrCacheMetadata;
UDATA _maximumAccessedShrCacheMetadata;
I_8 _layer;
/* All instances of this class share a common debug & raw class data region
*/
ClassDebugDataProvider * _debugData;
/* All composite caches within a JVM point to the same 'J9ShrCompositeCacheCommonInfo'
* structure.
*/
J9ShrCompositeCacheCommonInfo * _commonCCInfo;
BlockPtr next(J9VMThread* currentThread);
void incReaderCount(J9VMThread* currentThread);
void decReaderCount(J9VMThread* currentThread);
void initialize(J9JavaVM* vm, BlockPtr memForConstructor, J9SharedClassConfig* sharedClassConfig, const char* cacheName, I_32 cacheTypeRequired, bool startupForStats, I_8 layer);
void initializeWithCommonInfo(J9JavaVM* vm, J9SharedClassConfig* sharedClassConfig, BlockPtr memForConstructor, const char* cacheName, I_32 newPersistentCacheReqd, bool startupForStats, I_8 layer);
void initCommonCCInfoHelper();
void commonInit(J9JavaVM* vm);
BlockPtr allocate(J9VMThread* currentThread, U_8 type, ShcItem* itemToWrite, U_32 len2, U_32 segBufSize,
BlockPtr* segBuf, BlockPtr* readWriteBuffer, U_32 align, U_32 alignOffset);
BlockPtr allocateMetadataEntry(J9VMThread* currentThread, BlockPtr allocPtr, ShcItem *itemToWrite, U_32 itemLen);
void setCacheAreaBoundaries(J9VMThread* currentThread, J9SharedClassPreinitConfig* piConfig);
void notifyPagesRead(BlockPtr start, BlockPtr end, UDATA expectedDirection, bool protect);
void notifyPagesCommitted(BlockPtr start, BlockPtr end, UDATA expectedDirection);
void unprotectHeaderReadWriteArea(J9VMThread* currentThread, bool changeReadWrite);
void protectHeaderReadWriteArea(J9VMThread* currentThread, bool changeReadWrite);
void unprotectMetadataArea();
void protectMetadataArea(J9VMThread *currentThread);
U_32 getCacheCRC(void);
U_32 getCacheAreaCRC(U_8* areaStart, U_32 areaSize);
void updateCacheCRC(void);
bool checkCacheCRC(bool* cacheHasIntegrity, UDATA *crcValue);
IDATA setRegionPermissions(J9PortLibrary* portLibrary, void *address, UDATA length, UDATA flags);
void commitUpdateHelper(J9VMThread* currentThread, bool isCachelet);
void setIsLocked(bool value);
bool isCacheInitComplete(void);
void setCorruptCache(J9VMThread *currentThread);
I_32 getFreeAOTBytes(J9VMThread *currentThread);
I_32 getFreeJITBytes(J9VMThread *currentThread);
void setSoftMaxBytes(J9VMThread *currentThread, U_32 softMaxBytes, bool isJCLCall = false);
void unsetCacheHeaderFullFlags(J9VMThread *currentThread, UDATA flagsToUnset);
void updateMprotectRuntimeFlags(void);
#if defined(J9VM_OPT_SHR_MSYNC_SUPPORT)
void updateMsyncRuntimeFlags(void);
#endif /* defined(J9VM_OPT_SHR_MSYNC_SUPPORT) */
BlockPtr getRomClassProtectEnd() {
return _romClassProtectEnd;
}
void setRomClassProtectEnd(BlockPtr pointer) {
_romClassProtectEnd = pointer;
}
class SH_SharedCacheHeaderInit : public SH_OSCache::SH_OSCacheInitializer
{
protected:
void *operator new(size_t size, void *memoryPtr) { return memoryPtr; };
public:
static SH_SharedCacheHeaderInit* newInstance(SH_SharedCacheHeaderInit* memForConstructor);
virtual void init(BlockPtr data, U_32 len, I_32 minAOT, I_32 maxAOT, I_32 minJIT, I_32 maxJIT, U_32 readWriteLen, U_32 softMaxBytes);
};
SH_SharedCacheHeaderInit* _newHdrPtr;
friend IDATA testProtectNewROMClassData_test1(J9JavaVM* vm);
friend IDATA testProtectSharedCacheData_test1(J9JavaVM* vm);
friend IDATA testProtectSharedCacheData_test2(J9JavaVM* vm);
friend IDATA testProtectSharedCacheData_test3(J9JavaVM* vm);
friend class OpenCacheHelper;
};
#endif /* !defined(COMPOSITECACHEIMPL_H_INCLUDED) */