@@ -117,12 +117,11 @@ class GenBCodePipeline(val entryPoints: List[Symbol], val int: DottyBackendInter
117
117
118
118
case class Item2 (arrivalPos : Int ,
119
119
mirror : SubItem2 ,
120
- plain : SubItem2 ,
121
- bean : SubItem2 ) {
120
+ plain : SubItem2 ) {
122
121
def isPoison = { arrivalPos == Int .MaxValue }
123
122
}
124
123
125
- private val poison2 = Item2 (Int .MaxValue , null , null , null )
124
+ private val poison2 = Item2 (Int .MaxValue , null , null )
126
125
private val q2 = new _root_.java.util.LinkedList [Item2 ]
127
126
128
127
/* ---------------- q3 ---------------- */
@@ -142,8 +141,7 @@ class GenBCodePipeline(val entryPoints: List[Symbol], val int: DottyBackendInter
142
141
143
142
case class Item3 (arrivalPos : Int ,
144
143
mirror : SubItem3 ,
145
- plain : SubItem3 ,
146
- bean : SubItem3 ) {
144
+ plain : SubItem3 ) {
147
145
148
146
def isPoison = { arrivalPos == Int .MaxValue }
149
147
}
@@ -154,7 +152,7 @@ class GenBCodePipeline(val entryPoints: List[Symbol], val int: DottyBackendInter
154
152
else 1
155
153
}
156
154
}
157
- private val poison3 = Item3 (Int .MaxValue , null , null , null )
155
+ private val poison3 = Item3 (Int .MaxValue , null , null )
158
156
private val q3 = new java.util.PriorityQueue [Item3 ](1000 , i3comparator)
159
157
160
158
/*
@@ -248,7 +246,7 @@ class GenBCodePipeline(val entryPoints: List[Symbol], val int: DottyBackendInter
248
246
249
247
// ----------- create files
250
248
251
- val classNodes = List (mirrorC, plainC, beanC )
249
+ val classNodes = List (mirrorC, plainC)
252
250
val classFiles = classNodes.map(cls =>
253
251
if (outF != null && cls != null ) {
254
252
try {
@@ -290,8 +288,7 @@ class GenBCodePipeline(val entryPoints: List[Symbol], val int: DottyBackendInter
290
288
val item2 =
291
289
Item2 (arrivalPos,
292
290
SubItem2 (mirrorC, classFiles(0 )),
293
- SubItem2 (plainC, classFiles(1 )),
294
- SubItem2 (beanC, classFiles(2 )))
291
+ SubItem2 (plainC, classFiles(1 )))
295
292
296
293
q2 add item2 // at the very end of this method so that no Worker2 thread starts mutating before we're done.
297
294
@@ -340,21 +337,17 @@ class GenBCodePipeline(val entryPoints: List[Symbol], val int: DottyBackendInter
340
337
cw.toByteArray
341
338
}
342
339
343
- val Item2 (arrivalPos,
344
- SubItem2 (mirror, mirrorFile),
345
- SubItem2 (plain, plainFile),
346
- SubItem2 (bean, beanFile)) = item
340
+ val Item2 (arrivalPos, SubItem2 (mirror, mirrorFile), SubItem2 (plain, plainFile)) = item
347
341
348
342
val mirrorC = if (mirror == null ) null else SubItem3 (mirror.name, getByteArray(mirror), mirrorFile)
349
343
val plainC = SubItem3 (plain.name, getByteArray(plain), plainFile)
350
- val beanC = if (bean == null ) null else SubItem3 (bean.name, getByteArray(bean), beanFile)
351
344
352
345
if (AsmUtils .traceSerializedClassEnabled && plain.name.contains(AsmUtils .traceSerializedClassPattern)) {
353
346
if (mirrorC != null ) AsmUtils .traceClass(mirrorC.jclassBytes)
354
347
AsmUtils .traceClass(plainC.jclassBytes)
355
348
}
356
349
357
- q3 add Item3 (arrivalPos, mirrorC, plainC, beanC )
350
+ q3 add Item3 (arrivalPos, mirrorC, plainC)
358
351
}
359
352
360
353
} // end of class BCodePhase.Worker2
@@ -470,7 +463,6 @@ class GenBCodePipeline(val entryPoints: List[Symbol], val int: DottyBackendInter
470
463
val item = incoming
471
464
sendToDisk(item.mirror)
472
465
sendToDisk(item.plain)
473
- sendToDisk(item.bean)
474
466
expected += 1
475
467
}
476
468
}
0 commit comments