Skip to content

Commit 153d72e

Browse files
Remove J9SHR_CACHELET_SUPPORT and J9SHR_CACHELETS_SAVE_READWRITE_AREA macro
This patch removes J9SHR_CACHELET_SUPPORT and J9SHR_CACHELETS_SAVE_READWRITE_AREA macro along with related code Fixes #6652 Signed-off-by: Alexey Anufriev <contact@alexey-anufriev.com>
1 parent 6338d75 commit 153d72e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+165
-4682
lines changed

runtime/ddr/ddrcppsupportstructs.properties

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
###############################################################################
2-
# Copyright (c) 2010, 2017 IBM Corp. and others
2+
# Copyright (c) 2010, 2020 IBM Corp. and others
33
#
44
# This program and the accompanying materials are made available under
55
# the terms of the Eclipse Public License 2.0 which accompanies this
@@ -66,13 +66,11 @@ CompositeCache.hpp,\
6666
CompositeCacheImpl.hpp,\
6767
hookhelpers.hpp,\
6868
Manager.hpp,\
69-
ManagerHintTable.hpp,\
7069
Managers.hpp,\
7170
OSCache.hpp,\
7271
OSCacheFile.hpp,\
7372
OSCachemmap.hpp,\
7473
OSCachesysv.hpp,\
75-
OSCachevmem.hpp,\
7674
ROMClassManager.hpp,\
7775
ROMClassManagerImpl.hpp,\
7876
ROMClassResourceManager.hpp,\

runtime/oti/shcflags.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
#define J9SHR_RUNTIMEFLAG_ENABLE_NONFATAL 0x2000
7979
#define J9SHR_RUNTIMEFLAG_DO_DESTROY_CONFIG 0x4000
8080
#define J9SHR_RUNTIMEFLAG_BLOCK_SPACE_FULL 0x8000
81-
#define J9SHR_RUNTIMEFLAG_ENABLE_NESTED 0x10000
81+
// Available 0x10000
8282
#define J9SHR_RUNTIMEFLAG_ENABLE_AOT 0x20000
8383
#define J9SHR_RUNTIMEFLAG_ENABLE_PERSISTENT_CACHE 0x40000
8484
#define J9SHR_RUNTIMEFLAG_ENABLE_GROUP_ACCESS 0x80000

runtime/shared_common/ByteDataManagerImpl.cpp

+1-61
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2001, 2019 IBM Corp. and others
2+
* Copyright (c) 2001, 2020 IBM Corp. and others
33
*
44
* This program and the accompanying materials are made available under
55
* the terms of the Eclipse Public License 2.0 which accompanies this
@@ -489,63 +489,3 @@ SH_ByteDataManagerImpl::getUnindexedDataBytes()
489489
{
490490
return _unindexedBytes;
491491
}
492-
493-
494-
#if defined(J9SHR_CACHELET_SUPPORT)
495-
496-
/**
497-
* Walk the managed items hashtable in this cachelet. Allocate and populate an array
498-
* of hints, one for each hash entry.
499-
*
500-
* @param[in] self a data type manager
501-
* @param[in] vmthread the current VMThread
502-
* @param[out] hints a CacheletHints structure. This function fills in its
503-
* contents.
504-
*
505-
* @retval 0 success
506-
* @retval -1 failure
507-
*/
508-
IDATA
509-
SH_ByteDataManagerImpl::createHintsForCachelet(J9VMThread* vmthread, SH_CompositeCache* cachelet, CacheletHints* hints)
510-
{
511-
Trc_SHR_Assert_True(hints != NULL);
512-
513-
/* hints->dataType should have been set by the caller */
514-
Trc_SHR_Assert_True(hints->dataType == _dataTypesRepresented[0]);
515-
516-
return hllCollectHashes(vmthread, cachelet, hints);
517-
}
518-
519-
/**
520-
* add a (_hashValue, cachelet) entry to the hash table
521-
* only called with hints of the right data type
522-
*
523-
* each hint is a UDATA-length hash of a string
524-
*/
525-
IDATA
526-
SH_ByteDataManagerImpl::primeHashtables(J9VMThread* vmthread, SH_CompositeCache* cachelet, U_8* hintsData, UDATA dataLength)
527-
{
528-
UDATA* hashSlot = (UDATA*)hintsData;
529-
UDATA hintCount = 0;
530-
531-
if ((dataLength == 0) || (hintsData == NULL)) {
532-
return 0;
533-
}
534-
535-
hintCount = dataLength / sizeof(UDATA);
536-
while (hintCount-- > 0) {
537-
Trc_SHR_BDMI_primeHashtables_addingHint(vmthread, cachelet, *hashSlot);
538-
if (!_hints.addHint(vmthread, *hashSlot, cachelet)) {
539-
/* If we failed to finish priming the hints, just give up.
540-
* Stuff should still work, just suboptimally.
541-
*/
542-
Trc_SHR_BDMI_primeHashtables_failedToPrimeHint(vmthread, this, cachelet, *hashSlot);
543-
break;
544-
}
545-
++hashSlot;
546-
}
547-
548-
return 0;
549-
}
550-
551-
#endif /* J9SHR_CACHELET_SUPPORT */

runtime/shared_common/ByteDataManagerImpl.hpp

+1-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2001, 2017 IBM Corp. and others
2+
* Copyright (c) 2001, 2020 IBM Corp. and others
33
*
44
* This program and the accompanying materials are made available under
55
* the terms of the Eclipse Public License 2.0 which accompanies this
@@ -94,12 +94,6 @@ class SH_ByteDataManagerImpl : public SH_ByteDataManager
9494
BdLinkedListImpl* newBLL = (BdLinkedListImpl*)memForConstructor;
9595
return (HashLinkedListImpl*) new(newBLL) BdLinkedListImpl();
9696
}
97-
98-
#if defined(J9SHR_CACHELET_SUPPORT)
99-
virtual bool canCreateHints() { return true; }
100-
virtual IDATA createHintsForCachelet(J9VMThread* vmthread, SH_CompositeCache* cachelet, CacheletHints* hints);
101-
virtual IDATA primeHashtables(J9VMThread* vmthread, SH_CompositeCache* cachelet, U_8* hintsData, UDATA datalength);
102-
#endif
10397

10498
private:
10599
J9Pool* _linkedListImplPool;

runtime/shared_common/CMakeLists.txt

-2
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,11 @@ j9vm_add_library(j9shrcommon STATIC
3434
CompositeCache.cpp
3535
hookhelpers.cpp
3636
Manager.cpp
37-
ManagerHintTable.cpp
3837
Managers.cpp
3938
OSCache.cpp
4039
OSCacheFile.cpp
4140
OSCachemmap.cpp
4241
OSCachesysv.cpp
43-
OSCachevmem.cpp
4442
ROMClassManagerImpl.cpp
4543
ROMClassResourceManager.cpp
4644
SCImplementedAPI.cpp

0 commit comments

Comments
 (0)