Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 3.1.2
-
Fix Version/s: 3.1.3
-
Component/s: Compiler: Optimizing
-
Labels:None
-
Patch Submitted:Yes
-
Number of attachments :
Description
Currently, Jikes RVM comes with two implementations of an "empty iterator": org.jikesrvm.util.EmptyIterator and org.jikesrvm.compilers.opt.util.EmptyIterator. Both implementations have shortcomings (no singleton iterator and no generics, respectively) and don't throw the exceptions expected of the Java 7 java.util.Collections.emptyIterator http://docs.oracle.com/javase/7/docs/api/java/util/Collections.html#emptyIterator%28%29.
The attached patch consolidates both implementations into a single, generic org.jikesrvm.util.EmptyIterator.
Activity
David Grove
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Assignee | David Grove [ dgrove ] |
Erik Brangs
made changes -
| Attachment | RVM-965-updated.diff [ 60816 ] |
David Grove
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Fix Version/s | 3.1.3 [ 18230 ] | |
| Resolution | Fixed [ 1 ] |
David Grove
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |
Just realized I never reported this. I tried applying the patch in May. I didn't commit it then because the modofied system failed one of the precommit tests. I didn't dig too deeply, but I suspect that some piece of the opt compiler maybe was relying on the old behavior on empty iteration.