Skip to content

Commit 9b69fd5

Browse files
committed
merged
2 parents 34e3b33 + 2c61fdb commit 9b69fd5

File tree

3 files changed

+22
-15
lines changed

3 files changed

+22
-15
lines changed

src/core/array_bit.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ CL_DEFUN SimpleBitVector_sp core__sbv_bit_not(SimpleBitVector_sp vec, SimpleBitV
134134
} \
135135
i = nwords; \
136136
if (leftover != 0) { \
137-
bit_array_word mask = ((1 << leftover) - 1) << (BIT_ARRAY_WORD_BITS - leftover); \
137+
bit_array_word mask = (((bit_array_word)1 << leftover) - 1) << (BIT_ARRAY_WORD_BITS - leftover); \
138138
word = bytes[i] & mask; \
139139
statement \
140140
} \
@@ -199,7 +199,9 @@ void SimpleBitVector_getOnIndices(SimpleBitVector_sp x, vector<size_t>& res) {
199199
}
200200
}
201201

202-
bool SimpleBitVector_isZero(SimpleBitVector_sp vec) { return core__sbv_zerop(vec); }
202+
bool SimpleBitVector_isZero(SimpleBitVector_sp vec) {
203+
return core__sbv_zerop(vec);
204+
}
203205

204206
bool BitVectorNs_O::equal(T_sp other) const {
205207
if (&*other == this)

src/core/function.cc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,15 +770,20 @@ void maybe_verify_dladdr( core::ClaspXepFunction& entryPoints,
770770
core::T_sp code,
771771
core::FunctionDescription_sp functionDescription,
772772
gctools::GatherObjects* gatherP ) {
773-
gatherP->_SimpleFunCount++;
774773
if (gc::IsA<llvmo::Library_sp>(code)) {
774+
gatherP->_SimpleFunCount++;
775775
bool failed_dladdr = false;
776776
for (size_t ii = 0; ii < ClaspXepFunction::Entries; ++ii) {
777777
Dl_info info;
778778
void* address = (void*)entryPoints._EntryPoints[ii].load();
779779
if (gatherP->_uniqueEntryPoints.count(address)==0) {
780780
gatherP->_uniqueEntryPoints.insert(address);
781781
int ret = dladdr((void*)address, &info);
782+
printf("%s:%d:%s dladdr ret=%d for entry point[%zu] %p for %s\n",
783+
__FILE__, __LINE__, __FUNCTION__,
784+
ret,
785+
ii, (void*)address,
786+
_rep_(functionDescription->_functionName).c_str());
782787
if (ret == 0) {
783788
failed_dladdr = true;
784789
gatherP->_uniqueEntryPointsFailedDladdr.insert(address);

src/gctools/boehmGarbageCollection.cc

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -555,21 +555,21 @@ void clasp_gc_room(std::ostringstream& OutputStream, RoomVerbosity verbosity) {
555555
OutputStream << "Total object memory usage (bytes): " << std::setw(10) << totalSize << '\n';
556556
}
557557
#endif
558-
OutputStream << "Total GC_get_heap_size(): " << std::setw(12) << GC_get_heap_size() << '\n';
559-
OutputStream << "Total GC_get_free_bytes(): " << std::setw(12) << GC_get_free_bytes() << '\n';
560-
OutputStream << "Total GC_get_bytes_since_gc(): " << std::setw(12) << GC_get_bytes_since_gc() << '\n';
561-
OutputStream << "Total GC_get_total_bytes(): " << std::setw(12) << GC_get_total_bytes() << '\n';
562-
OutputStream << "Total number of JITDylibs: " << std::setw(12) << cl__length(_lisp->_Roots._JITDylibs) << '\n';
563-
OutputStream << "Total number of Libraries: " << std::setw(12) << cl__length(_lisp->_Roots._AllLibraries) << '\n';
564-
OutputStream << "Total number of ObjectFiles: " << std::setw(12) << cl__length(_lisp->_Roots._AllObjectFiles) << '\n';
565-
OutputStream << "Total number of CodeBlocks: " << std::setw(12) << cl__length(_lisp->_Roots._AllCodeBlocks) << '\n';
566-
OutputStream << "Total number of SimpleFun: " << std::setw(12) << gatherObjects._SimpleFunCount << '\n';
558+
OutputStream << "Total GC_get_heap_size(): " << std::setw(12) << GC_get_heap_size() << '\n';
559+
OutputStream << "Total GC_get_free_bytes(): " << std::setw(12) << GC_get_free_bytes() << '\n';
560+
OutputStream << "Total GC_get_bytes_since_gc(): " << std::setw(12) << GC_get_bytes_since_gc() << '\n';
561+
OutputStream << "Total GC_get_total_bytes(): " << std::setw(12) << GC_get_total_bytes() << '\n';
562+
OutputStream << "Total number of JITDylibs: " << std::setw(12) << cl__length(_lisp->_Roots._JITDylibs) << '\n';
563+
OutputStream << "Total number of Libraries: " << std::setw(12) << cl__length(_lisp->_Roots._AllLibraries) << '\n';
564+
OutputStream << "Total number of ObjectFiles: " << std::setw(12) << cl__length(_lisp->_Roots._AllObjectFiles) << '\n';
565+
OutputStream << "Total number of CodeBlocks: " << std::setw(12) << cl__length(_lisp->_Roots._AllCodeBlocks) << '\n';
566+
OutputStream << "Total number of library Simple(Core)Fun: " << std::setw(12) << gatherObjects._SimpleFunCount << '\n';
567567
if (gatherObjects._SimpleFunFailedDladdrCount>0) {
568-
OutputStream << "Total number of SimpleFun failed dladdr: " << std::setw(12) << gatherObjects._SimpleFunFailedDladdrCount << '\n';
568+
OutputStream << "Total of library Simple(Core)Fun dladdr fails: " << std::setw(12) << gatherObjects._SimpleFunFailedDladdrCount << '\n';
569569
}
570-
OutputStream << "Unique entry points: " << std::setw(12) << gatherObjects._uniqueEntryPoints.size() << '\n';
570+
OutputStream << "Unique library Simple(Core)Fun entry points: " << std::setw(12) << gatherObjects._uniqueEntryPoints.size() << '\n';
571571
if (gatherObjects._uniqueEntryPointsFailedDladdr.size()>0) {
572-
OutputStream << "Unique entry points failed dladdr: " << std::setw(10) << gatherObjects._uniqueEntryPointsFailedDladdr.size() << '\n';
572+
OutputStream << "Unique library Simple(Core)Fun dladdr fails: " << std::setw(10) << gatherObjects._uniqueEntryPointsFailedDladdr.size() << '\n';
573573
}
574574
delete static_ReachableClassKinds;
575575
}

0 commit comments

Comments
 (0)