#1399: Array unshift/access broken
----------------------+-----------------------------------------------------
 Reporter:  plobsing  |       Owner:       
     Type:  bug       |      Status:  new  
 Priority:  normal    |   Milestone:       
Component:  core      |     Version:  trunk
 Severity:  medium    |    Keywords:       
     Lang:            |       Patch:       
 Platform:            |  
----------------------+-----------------------------------------------------

Comment(by kurahaupo):

 Firstly, I notice that the array is always missing 1920 elements, even if
 I double the size to 200000.

 Secondly, when I instrumented Parrot_pmc_array_unshift (by putting a
 "printf" in the conditional block where "start" is 0) it actually failed
 during the build, at

  ./parrot -o runtime/parrot/include/parrotlib.pbc
 runtime/parrot/library/parrotlib.pir

 in much the same manner, after just two "unshift" chunk insertions.
 However since I still had runtime files from the unadulterated build, I
 could still run the test file.

 It's possible that the instrumentation itself causes the new form of
 error, but I would like to investigate whether GCC is over-optimizating
 something.

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/1399#comment:2>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to