@@ -205,11 +205,6 @@ set(omrgc_sources
205
205
omr_add_library(omrgc STATIC
206
206
${omrgc_sources}
207
207
)
208
- if (OMR_GC_COMPRESSED_POINTERS AND OMR_GC_FULL_POINTERS)
209
- omr_add_library(omrgc_full STATIC
210
- ${omrgc_sources}
211
- )
212
- endif ()
213
208
214
209
target_enable_ddr(omrgc EARLY_SOURCE_EVAL)
215
210
ddr_set_add_targets(omrddr omrgc)
@@ -228,12 +223,6 @@ if(OMR_GC_OBJECT_MAP)
228
223
PRIVATE
229
224
${objmap_sources}
230
225
)
231
- if (OMR_GC_COMPRESSED_POINTERS AND OMR_GC_FULL_POINTERS)
232
- target_sources (omrgc_full
233
- PRIVATE
234
- ${objmap_sources}
235
- )
236
- endif ()
237
226
endif ()
238
227
239
228
if (OMR_GC_MODRON_STANDARD)
@@ -258,14 +247,8 @@ if(OMR_GC_MODRON_STANDARD)
258
247
PRIVATE
259
248
${modronstandard_sources}
260
249
)
261
- if (OMR_GC_COMPRESSED_POINTERS AND OMR_GC_FULL_POINTERS)
262
- target_sources (omrgc_full
263
- PRIVATE
264
- ${modronstandard_sources}
265
- )
266
- endif ()
267
250
268
- if (OMR_GC_MODRON_COMPACTION)
251
+ if (OMR_GC_MODRON_COMPACTION)
269
252
set (modroncompaction_sources
270
253
base/standard/CompactFixHeapForWalkTask.cpp
271
254
base/standard/CompactScheme.cpp
@@ -278,13 +261,8 @@ if(OMR_GC_MODRON_STANDARD)
278
261
PRIVATE
279
262
${modroncompaction_sources}
280
263
)
281
- if (OMR_GC_COMPRESSED_POINTERS AND OMR_GC_FULL_POINTERS)
282
- target_sources (omrgc_full
283
- PRIVATE
284
- ${modroncompaction_sources}
285
- )
286
- endif ()
287
264
endif ()
265
+
288
266
if (OMR_GC_MODRON_CONCURRENT_MARK)
289
267
set (modronconcurrentmark_sources
290
268
base/standard/ConcurrentCardTable.cpp
@@ -309,12 +287,6 @@ if(OMR_GC_MODRON_STANDARD)
309
287
PRIVATE
310
288
${modronconcurrentmark_sources}
311
289
)
312
- if (OMR_GC_COMPRESSED_POINTERS AND OMR_GC_FULL_POINTERS)
313
- target_sources (omrgc_full
314
- PRIVATE
315
- ${modronconcurrentmark_sources}
316
- )
317
- endif ()
318
290
319
291
if (OMR_GC_MODRON_SCAVENGER)
320
292
set (mcm_modronscavenger_sources
@@ -325,14 +297,9 @@ if(OMR_GC_MODRON_STANDARD)
325
297
PRIVATE
326
298
${mcm_modronscavenger_sources}
327
299
)
328
- if (OMR_GC_COMPRESSED_POINTERS AND OMR_GC_FULL_POINTERS)
329
- target_sources (omrgc_full
330
- PRIVATE
331
- ${mcm_modronscavenger_sources}
332
- )
333
- endif ()
334
300
endif ()
335
301
endif ()
302
+
336
303
if (OMR_GC_CONCURRENT_SWEEP)
337
304
set (concurrentsweep_sources
338
305
base/standard/ConcurrentSweepScheme.cpp
@@ -342,13 +309,8 @@ if(OMR_GC_MODRON_STANDARD)
342
309
PRIVATE
343
310
${concurrentsweep_sources}
344
311
)
345
- if (OMR_GC_COMPRESSED_POINTERS AND OMR_GC_FULL_POINTERS)
346
- target_sources (omrgc_full
347
- PRIVATE
348
- ${concurrentsweep_sources}
349
- )
350
- endif ()
351
312
endif ()
313
+
352
314
if (OMR_GC_MODRON_SCAVENGER)
353
315
set (modronscavenger_sources
354
316
base/HeapSplit.cpp # TODO delete as this should not be used anymore!
@@ -369,12 +331,6 @@ if(OMR_GC_MODRON_STANDARD)
369
331
PRIVATE
370
332
${modronscavenger_sources}
371
333
)
372
- if (OMR_GC_COMPRESSED_POINTERS AND OMR_GC_FULL_POINTERS)
373
- target_sources (omrgc_full
374
- PRIVATE
375
- ${modronscavenger_sources}
376
- )
377
- endif ()
378
334
379
335
if (OMR_GC_CONCURRENT_SCAVENGER)
380
336
set (ms_concurrentscavenger_sources
@@ -385,12 +341,6 @@ if(OMR_GC_MODRON_STANDARD)
385
341
PRIVATE
386
342
${ms_concurrentscavenger_sources}
387
343
)
388
- if (OMR_GC_COMPRESSED_POINTERS AND OMR_GC_FULL_POINTERS)
389
- target_sources (omrgc_full
390
- PRIVATE
391
- ${ms_concurrentscavenger_sources}
392
- )
393
- endif ()
394
344
endif ()
395
345
endif ()
396
346
endif ()
@@ -425,13 +375,6 @@ if(OMR_GC_SEGREGATED_HEAP)
425
375
${segregatedheap_sources}
426
376
)
427
377
ddr_add_headers(omrgc base/segregated/RegionPoolSegregated.hpp)
428
-
429
- if (OMR_GC_COMPRESSED_POINTERS AND OMR_GC_FULL_POINTERS)
430
- target_sources (omrgc_full
431
- PRIVATE
432
- ${segregatedheap_sources}
433
- )
434
- endif ()
435
378
endif ()
436
379
437
380
if (OMR_GC_VLHGC)
@@ -443,12 +386,6 @@ if(OMR_GC_VLHGC)
443
386
PRIVATE
444
387
${vlhgc_sources}
445
388
)
446
- if (OMR_GC_COMPRESSED_POINTERS AND OMR_GC_FULL_POINTERS)
447
- target_sources (omrgc_full
448
- PRIVATE
449
- ${vlhgc_sources}
450
- )
451
- endif ()
452
389
453
390
set (vlhgc_include
454
391
base/vlhgc
@@ -458,18 +395,9 @@ if(OMR_GC_VLHGC)
458
395
PUBLIC
459
396
${vlhgc_include}
460
397
)
461
- if (OMR_GC_COMPRESSED_POINTERS AND OMR_GC_FULL_POINTERS)
462
- target_include_directories (omrgc_full
463
- PUBLIC
464
- ${vlhgc_include}
465
- )
466
- endif ()
467
398
endif ()
468
399
469
400
add_dependencies (omrgc omrgc_hookgen)
470
- if (OMR_GC_COMPRESSED_POINTERS AND OMR_GC_FULL_POINTERS)
471
- add_dependencies (omrgc_full omrgc_hookgen)
472
- endif ()
473
401
474
402
set (gc_include_public
475
403
.
@@ -494,14 +422,6 @@ target_include_directories(omrgc
494
422
INTERFACE
495
423
${gc_include_interface}
496
424
)
497
- if (OMR_GC_COMPRESSED_POINTERS AND OMR_GC_FULL_POINTERS)
498
- target_include_directories (omrgc_full
499
- PUBLIC
500
- ${gc_include_public}
501
- INTERFACE
502
- ${gc_include_interface}
503
- )
504
- endif ()
505
425
506
426
set (gc_link_libraries_public
507
427
omr_base
@@ -523,7 +443,97 @@ target_link_libraries(omrgc
523
443
)
524
444
set_target_properties (omrgc omrgc_hookgen omrgc_tracegen PROPERTIES FOLDER gc)
525
445
526
- if (OMR_GC_COMPRESSED_POINTERS AND OMR_GC_FULL_POINTERS)
446
+ if (OMR_MIXED_REFERENCES_MODE STREQUAL "static" )
447
+ target_compile_definitions (omrgc PUBLIC -DOMR_OVERRIDE_COMPRESS_OBJECT_REFERENCES=1)
448
+
449
+ omr_add_library(omrgc_full STATIC
450
+ ${omrgc_sources}
451
+ )
452
+
453
+ if (OMR_GC_OBJECT_MAP)
454
+ target_sources (omrgc_full
455
+ PRIVATE
456
+ ${objmap_sources}
457
+ )
458
+ endif ()
459
+
460
+ if (OMR_GC_MODRON_STANDARD)
461
+ target_sources (omrgc_full
462
+ PRIVATE
463
+ ${modronstandard_sources}
464
+ )
465
+
466
+ if (OMR_GC_MODRON_COMPACTION)
467
+ target_sources (omrgc_full
468
+ PRIVATE
469
+ ${modroncompaction_sources}
470
+ )
471
+ endif ()
472
+
473
+ if (OMR_GC_MODRON_CONCURRENT_MARK)
474
+ target_sources (omrgc_full
475
+ PRIVATE
476
+ ${modronconcurrentmark_sources}
477
+ )
478
+
479
+ if (OMR_GC_MODRON_SCAVENGER)
480
+ target_sources (omrgc_full
481
+ PRIVATE
482
+ ${mcm_modronscavenger_sources}
483
+ )
484
+ endif ()
485
+ endif ()
486
+
487
+ if (OMR_GC_CONCURRENT_SWEEP)
488
+ target_sources (omrgc_full
489
+ PRIVATE
490
+ ${concurrentsweep_sources}
491
+ )
492
+ endif ()
493
+
494
+ if (OMR_GC_MODRON_SCAVENGER)
495
+ target_sources (omrgc_full
496
+ PRIVATE
497
+ ${modronscavenger_sources}
498
+ )
499
+
500
+ if (OMR_GC_CONCURRENT_SCAVENGER)
501
+ target_sources (omrgc_full
502
+ PRIVATE
503
+ ${ms_concurrentscavenger_sources}
504
+ )
505
+ endif ()
506
+ endif ()
507
+ endif ()
508
+
509
+ if (OMR_GC_SEGREGATED_HEAP)
510
+ target_sources (omrgc_full
511
+ PRIVATE
512
+ ${segregatedheap_sources}
513
+ )
514
+ endif ()
515
+
516
+ if (OMR_GC_VLHGC)
517
+ target_sources (omrgc_full
518
+ PRIVATE
519
+ ${vlhgc_sources}
520
+ )
521
+
522
+ target_include_directories (omrgc_full
523
+ PUBLIC
524
+ ${vlhgc_include}
525
+ )
526
+ endif ()
527
+
528
+ add_dependencies (omrgc_full omrgc_hookgen)
529
+
530
+ target_include_directories (omrgc_full
531
+ PUBLIC
532
+ ${gc_include_public}
533
+ INTERFACE
534
+ ${gc_include_interface}
535
+ )
536
+
527
537
target_link_libraries (omrgc_full
528
538
PUBLIC
529
539
${gc_link_libraries_public}
@@ -532,10 +542,7 @@ if(OMR_GC_COMPRESSED_POINTERS AND OMR_GC_FULL_POINTERS)
532
542
)
533
543
set_target_properties (omrgc_full omrgc_hookgen omrgc_tracegen PROPERTIES FOLDER gc)
534
544
535
- if (OMR_MIXED_REFERENCES_MODE STREQUAL "static" )
536
- target_compile_definitions (omrgc PUBLIC -DOMR_OVERRIDE_COMPRESS_OBJECT_REFERENCES=1)
537
- target_compile_definitions (omrgc_full PUBLIC -DOMR_OVERRIDE_COMPRESS_OBJECT_REFERENCES=0)
538
- endif ()
545
+ target_compile_definitions (omrgc_full PUBLIC -DOMR_OVERRIDE_COMPRESS_OBJECT_REFERENCES=0)
539
546
endif ()
540
547
541
548
if (OMR_GC_API)
0 commit comments