Odd Handling of Wide by GetBytecodes -- Any Thoughts?

Hello Everyone,
I have been playing with examining the set of bytecodes executed by different Java applications using the JVMTI. However, I have come across an oddity with respect to how wide is handled. I wrote a simple hello world type program (prints "Hello World", then assigns 5 to a local variable, then prints out the local variable) that makes use of wide by declaring 300 local variables, the first 299 of which are not used. The bytecode for my program, as generated by javap -c is:
public static void main(java.lang.String[]);
Code:
0: getstatic #2; //Field java/lang/System.out:Ljava/io/PrintStream;
3: ldc #3; //String Hello World!
5: invokevirtual #4; //Method java/io/PrintStream.println:(Ljava/lang/String;)V
8: iconst_5
9: istore_w 300
13: getstatic #2; //Field java/lang/System.out:Ljava/io/PrintStream;
16: iload_w 300
20: invokevirtual #5; //Method java/io/PrintStream.println:(I)V
23: return
However, when I use GetBytecodes to get the array of unsigned chars inside my agent, the array of bytes contains the following values. I am getting these values back in a handler for JVMTI_EVENT_CLASS_PREPARE.
Method name: main
0: b2
1: 00
2: 02
3: 12
4: 03
5: b6
6: 00
7: 04
8: 08
9: 36 <-- why is this 0x36 and not WIDE (0xc4)
10: 36
11: 01
12: 2c
13: b2
14: 00
15: 02
16: 15 <-- why is this 0x15 and not WIDE (0xc4)
17: 15
18: 01
19: 2c
20: b6
21: 00
22: 05
23: b1
When I install a handler for JVMTI_EVENT_SINGLE_STEP I am also able to check each bytecode executed. I never see a WIDE execute here either. I would really like to be able to differentiate between the execution of a wide usage of <t>load and <t>store and their standard narrow forms.
Any thoughts are greatly appreciated.

Which release/build are you using? I believe there was a bug in the GetBytecodes function in 5.0 - that bug existed in JVMDI in 1.4.x too but wasn't observed or reported. The problems with the bytecode reconstitution were fixed in Java SE 6 ((you can grab the latest binary from http://download.java.net/jdk6/binaries). I also think the fix was back-ported to 5.0 update 4.

Similar Messages

  • Some odd results... anyone have any thoughts?

    Hi - I have quite a few sequences that I've exported from FCE 4 to compressor, and imported in DVDSP4. I've created a track joining all of the sequences together. It's worked well so far. Recently, I did a batch export from compressor, and got some wierd results, that shows up in DVDSP. (I've never done a batch export before). When I try to simulate the playing of the sequence, I get a green screen, and in the track, I get hollow squares. I've tried to re-export to DVD one sequence as a test, and that seemed to import fine. Does anyone have an opinion on the greenscreen/squares wierdness? Btw, the audio seems just fine.

    Hey Ira, how are you?
    Sounds like a bad encode/corrupted asset or perhaps you used a codec that was not processed properly.
    You can also try deleting the PAR/MPEG files beforre going through encoding again or delete preferences just in case

  • Acrobat/Reader cannot cope with internal Webserver connectivity problems, leading to comments being hidden/deleted. Any thoughts?

    Adobe Acrobat/Reader do not cope with interruptions to access to the internal WebServer hosting the PDF/XML review files.
    Steps to reproduce the issue:
    Connection is lost to the WebServer hosting the PDF review files.
    After connection to the WebServer is regained, access to the PDF review files is blocked by Adobe Acrobat/Reader.
    Sometimes this can be resolved by deleting the entire contents of the folder:
              C:\Users\<user-name>\AppData\LocalLow\Adobe\Acrobat\11.0\Synchronizer
    NOTES:
    We have experienced this behaviour especially when connecting to the WebServer via VPN. I reckon the connectivity issues could be initially our problem, that Acrobat/Reader simply do not handle.
    Clearing the contents of the Synchronizer folder does not always work.
    Team members have also seen situations where significant numbers of review comments or status values have been not been displayed, but exist in the XML review files. In some cases comments/status values have been automatically deleted without warning from the Adobe review XML files.
    PDF reviews are sent out via email as links to the PDF review file hosted on an internal WebServer.
    Writers and reviewers in the team either have either:
    Acrobat XI Pro 11.0.08 with Reader 11.0.08
    Acrobat XI Pro 9.5.5 with Reader 11.0.08
    I have personally experienced the above behaviour with Acrobat XI Pro 11.0.08 and Reader 11.0.08.
    Could this experience be connected the Synchronizer (http://helpx.adobe.com/acrobat/kb/known-issues-acrobat-xi-reader.html )?
    For example, where a reviewer uses a different version of Acrobat/Reader?
    Could anyone please provide a list of compatible versions of Acrobat/Reader?
    Expected results:
    Adobe Acrobat/Reader should really handle connection issues with a warning and later check for recovered connections.
    However, what appears to be happening is that Acrobat/Reader writes some sort of blocking code to the Synchronizer folder that prevents future checks of the PDF review files on the review WebServer.
    As far as I understand, the connection issues are not caused by Adobe software, however the problems we are experiencing relate to how Adobe Acrobat/Reader handle this loss of connection.
    Plea for Help!
    I have checked and the experience of missing comments and persistent "connectivity issues" seems to be a reported but sadly outstanding issue...
    This has been an ongoing headache for some time, so solutions would be great, but any thoughts or suggestions are welcome...?
         For example, has anyone using SharePoint to host PDF reviews experienced anything similar?
    Many thanks!

    Adobe Acrobat 11.0.09 with Microsoft SharePoint Repository Trial Update
    We've completed week one of a three week trial (see above) that will go on until Friday 24th October.
    We currently have just four PDF files out for review that make use of the SharePoint repository.
    To-date:
    Each review file has had multiple concurrent reviewers posting comments over several days from both over the office LAN and also via VPN when working remotely.
    Dynamic stamps seem to be working as hoped and are all visible.
    We have not experienced any connection-type issues and the we have not had reason to clear out the Synchronizer folder as described above.
    Counter balance:
    I have experienced the situation with a remote VPN connection, where Adobe Acrobat could not connect to our internal WebServer repository. At the same time, I was able to connect to PDF review files hosted in SharePoint.
    Summary:
    The experience so far does suggest that problems are caused by the an inconsistent connection to the WebServer repository (especially over VPN) combined with Adobe Acrobat/Reader's inability to cope with the resulting situation.
    At the moment I must say that while it is early days, I am hopeful that the combination of SharePoint as the repository and the update to Adobe Acrobat/Reader 11.0.09 will continue to prove to be reliable.
    I'll provide an update to this post on Friday 24th October...
    Here's hoping!

  • How to handle very wide EPS images?

    Hello,
    I am working on a project where we need to be able to open very wide EPS images in photoshop, but seems that the program has some limit. The image contains a printed music stave
    Please, see the attached eps file: I am able to open it with Preview (MacOS) despite it is truncated in some way, but I am completely unable to open it with Photoshop. Is there any other possible program to try if Photoshop fails?
    Any thoughts are very welcome.
    Thank you in advance!
    Best,
    Fabrizio

    Thank you guys and sorry for the automresponder, I really don't know how to avoid that!
    Anyway, as you can see all the files are truncaed. Any solution? It's interesting how the EPS file actually includes hte complete file but no program seems to be capable to display it entirely.
    Thank you again.
    Best,

  • Using ACT as database/calendar with iPhone 3GS.  On intial sync, i Phone picked up everything but won't sync with new data added to ACT.  Any thoughts and tk in advance

    Using ACT 10 as calander/data base.  When intial syncing with iPhone 3 GS it picked up all contacts and dates.  It is not picking up any changes / additions to the data base or calendar in any following syncs.  Any thoughts?  Tks in advance

    This is normal and is how Apple handles photos.
    There are NOT duplicate photos.
    Just as a song is in your itunes library and you can access that exact same song from a playlist,  all  photos synced to iphone are in the photo library and those exact same photos (NOT duplicates) can be accessed from the individual albums.
    It is working exactly as it should.

  • Folder Structure Script Only Works Locally? Any thoughts?

    Hello,
    I am using this script to copy the folder structure so I don't have to manually create new folders and copy/paste the names. This script works great locally. But when I need to use it on our servers. It does not work. Any thoughts?
    on run
              set source_folder to choose folder with prompt "Select folder to be duplicated:" as string
              my do_main_script(source_folder)
    end run
    on open of source_folder_list
              repeat with i from 1 to number of items in the source_folder_list
                        set this_folder_path to item i of the source_folder_list as string
                        if last character of this_folder_path is ":" then
                                  my do_main_script(this_folder_path)
                        end if
              end repeat
    end open
    on do_main_script(source_folder)
              tell application "Finder" to set source_folder to folder (source_folder)
              set the target_folder to (choose folder with prompt "Where would you like the duplicated folders to be moved to?")
              if source_folder is not "" and target_folder is not "" then
                        set new_folder_name to (name of source_folder as string) & " duplicate"
                        set source_folder to source_folder as string
                        set target_folder to target_folder as string
                        my create_new_folder(target_folder, new_folder_name)
                        my duplicate_folder_structure(source_folder, target_folder & new_folder_name & ":")
              end if
    end do_main_script
    on duplicate_folder_structure(source_folder, target_folder)
              tell application "Finder"
                        try
                                  get name of folders of folder (source_folder)
                                  set folder_list to result
                                  repeat with i from 1 to number of items in the folder_list
                                            set this_folder_name to item i of the folder_list as string
                                            my create_new_folder(target_folder, this_folder_name)
                                  end repeat
                        end try
              end tell
    end duplicate_folder_structure
    on create_new_folder(target_folder, new_folder_name)
              tell application "Finder"
                        try
                                  if not (exists item (target_folder & new_folder_name)) then
      make new folder at folder target_folder with properties {name:new_folder_name}
                                  end if
                        end try
              end tell
    end create_new_folder
    Best,
    Anthony

    Hi Frank,
    It copies the root folder but it stops there. The folder structure is very very deep and these jobs are very large. I'm thinking there too large for this script to handle. If I work off an external hard drive or locally it works without a hitch.

  • Aperture RAID plan - any thoughts?

    I'm about to setup a RAID for Aperture and wanted to see if anyone had any thoughts about my plan. I need to build a system that will take care of my ever expanding storage needs for a long time.
    Currently using both a PowerMac G5 and a MacBookPro. I want to be able to use the RAID with both systems, so will use software RAID instead of a controller. The G5 is on its way out and I'll eventually get a MacPro. Seems like the best solution is to use Port Multiplied SATA enclosures. This way I can use a Sonnet ExpressCard SATA dual SATA connector for the MacBookPro, and a PM SATA PCI card in the tower.
    For the enclosure I'll use a PROAVIO EB8PM. This is an eight bay enclosure with 2 Port Multiplied SATA ports. Yes, it is big but the PROAVIO enclosures are built for in-studio operation and are very very quiet.
    For my images, I'll make a four disk RAID, either striping 2 sets of 2 disks together and then mirroring both pairs, or the other way around, mirroring 2 sets of 2 disks and then striping them together. Need to find out which is the best option. This way I'll get very fast I/O and safety for my images, which will all be referenced.  May use Seagate 750GB, which I have a few of already, or maybe splurge and get some of the new 1TB drives. This will give me 1.5 or 2 TB, which should allow me to forget about running out of space for at least a couple of years!!!
    For the Aperture library, I'll make another RAID 0 (striped for safety and slight speed increase). This 2nd RAID will also house my other data (music, movies, personal, etc.)  
    A large single drive will be the backup target for the both the Images and the Library, using Retrospect. Eventually will have two drives so I can store one off site, and rotate them from time to time. This will leave me with one bay free, which might come in handy.
    As the images will be referenced, the Aperture library will be more compact. This way if I am going to be on the road, I can copy the library to the MacBookPro's internal drive, and copy over any referenced images I might need. When I get back from traveling, the Library goes back to the small RAID, any new images get put into the large RAID and I'm back in action.
    This is a huge investment but I feel it is necessary to handle the tidal wave of shooting RAW, plus the need for removing disk I/O as a bottleneck in the Aperture chain.
    I have not used referenced images before, so I hope I am not opening myself up to other issues with this strategy. But keeping everything in the library will make it impossible to copy it to the MacBookPro, so I guess I don't have a choice.
    I'm about to take the plunge so your comments are most welcome!
    thanks...

    Thanks for your comments...
    re: 1) Striping (RAID 0) makes it more likely you'll loose data, as only one drive needs to die and all data is gone. Mirroring is good for a drive where you'll be changing data often, but if it's just an archive drive is kind of a waste (wasn't quite sure where you were keeping what in all the mixes of striped and mirrored sets)
    The idea for the IMAGES is to to combine stripe (RAID 0) for speed and mirror (RAID 1) for safety into a RAID 0+1. The LIBRARY would be on the RAID with just RAID 1 (mirrored).
    re: 2) I would have the library itself on a RAID that is mirrored so that your changes are being backed up real time.
    Yes, that is my plan. I made a mistake in my original post. For the Library I meant RAID 1 for safety, not RAID 0.
    re: 5) The copying of the Aperture library sounds interesting, but another plan would be to just copy over projects you want.
    Yes, I thought about that, but I like the idea of keeping my entire library with previews with me. Also exporting different projects can get tricky. Which ones did I export? Which ones did I make changes to? etc. Keeping the Library intact seems like a good way to prevent user error...
    re: 6) Nothing is wrong with referenced copies, it just makes having a good backup strategy a lot more important, and you can't rely on Vault to backup masters (but then you were using Retrospect so that sounds fine)
    Frankly, I never liked the Vault. It seems like a good concept, but is unweildly. Retrospect, despite not having been updated for a very long time is fast and accurate and restoring a single accidentaly deleted image is snap.
    By the way, I posted a message about using Software RAID in the Xserve RAID forum if anyone is interested:
    http://discussions.apple.com/thread.jspa?messageID=5456086#5456086
    matthew

  • My iPod 5 will not sync ANY music. All my music was on prior to syncing. The sync deleted all my music. I can now no longer add any music. I have the "sync music" checked. Restoring factory settings did not work. Any thoughts?

    All my music was on prior to syncing. The sync deleted all my music. I can now no longer add any music. I have the "sync music" checked. Restoring factory settings did not work. Any thoughts?

    When you synced with iTunes It would have tried to replace the music on the iPhone with what is on the computer. which is what happens when you sync with iTunes.
    If the songs are purchased you can re-downloaded them Pretty easily. You mentioned that you still see the songs and that you could not play them. Do they have a Cloud symbol next to them? If so this means that you can download them but that they are not on the device.

  • HT1304 I have an iphone5 and i did the upgrade.  Now all of the music videos that I have purchased on itunes do not show up when the phone is held horizontally.  It is just a picture of album covers.  Any thoughts?

    I have an iphone 5 and I did the upgrade.  Now all of the music videos that I purchased on itunes do not show up when I hold the phone horizontally.  It is just a picture of album covers.  Any thoughts?
    thank you

    someone swapped upgrades.  Phone could have been sold For quick cash. 

  • My MacBook Pro was stolen last night. I need the serial number. It is not showing up on my devices list. My iPads and iPhones are. I have used it to to sync my phones and pads as well having it registered with apple. Any thoughts? Thanks

    My MacBook Pro was stolen last night. I need the serial number. It is not showing up on my devices list. My iPads and iPhones are. I have used it to to sync my phones and pads as well having it registered with apple. Any thoughts? Thanks

    Click here: https://supportprofile.apple.com/MySupportProfile.do
    SIgn in with your Apple ID, the same one you used to access this support forum.
    Hopefully, you will see a list of all the devices you registered with your Apple ID, including their serial numbers. Let me know how this works out.
    Edit to add: If you enabled "find my imac" on your Pro, you ought to be able to remotely lock it, or even wipe its memory. Click http://www.icloud.com/ sign in with your Apple ID and click the big green "find my iPhone" icon (nevermind the name, it will find all your devices provided they're running Lion or iOS 5).
    Then file a police report and nail the b*****d.

  • When trying to update my apps on my phone, after logging in it says my account has been disabled for security reasons. I've updated my password but it still says its disabled. Any thoughts?!

    When trying to update my apps on my phone, after logging in it says my account has been disabled for security reasons. I've updated my password but it still says its disabled. Any thoughts?!

    Hi,
    If you have followed everything in the link below, and still have the problem, click on one of the links at the very bottom under "Additional Information". That's all we can do for you here:
    http://support.apple.com/kb/TS2446
    Cheers,
    GB

  • I am having trouble with a LaCie 526 monitor working with my new Mac Pro.  When I boot up, I see the sign-in screen for a second, then it disappears, reappears with some of the screen pixelated and the spinning beach ball -- and then freezes. Any thoughts

    The LaCie is connected via DVI to thunderbolt adapter.  It had been working, and then when I switched off the computer and restarted several days later, I see the signon screen flash quickly, followed by nothing, followed by the signon screen and spinning beach ball and it simply freezes.  Any thoughts?

    When you have kernel panics, the pertinent information is in the panic report.
    These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    In the Console window, select
              DIAGNOSTIC AND USAGE INFORMATION ▹ System Diagnostic Reports
    (not Diagnostic and Usage Messages) from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar.
    There is a disclosure triangle to the left of the list item. If the triangle is pointing to the right, click it so that it points down. You'll see a list of reports. A panic report has a name that begins with "Kernel" and ends in ".panic". Select the most recent one. The contents of the report will appear on the right. Use copy and paste to post the entire contents—the text, not a screenshot.
    If you don't see any reports listed, but you know there was a panic, you may have chosen Diagnostic and Usage Messages from the log list. Choose DIAGNOSTIC AND USAGE INFORMATION instead.
    In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.)
    Please don’t post other kinds of diagnostic report.
    I know the report is long, maybe several hundred lines. Please post all of it anyway.

  • When i go to 'New Folder' the name box only opens for a second so I dont have time to name it correctly. Rename Folder does the same thing - any thoughts??

    when i go to 'New Folder' in outlook the name box only opens for a second so I don't have time to name it correctly. Rename Folder does the same thing. Any thoughts? Many thanks.

    Hi Clint,
    Did you get a reply from anyone for this problem?  I'm having the same problem and wondering what the resolution might be.
    Thanks

  • I can access and use the store just fine - but when I try to open iTunes HELP, I just get a blank/white Help box. Any thoughts or ideas? Dee

    Not sure if I have to repeat question, but I cannot access the iTunes HELP from the Store on my PC (Dell laptop/Windows 7) - opens the box, but it remains blank/white, never fills in with HELP information. Any thoughts? dee

    I would check with HP. Your scanner may need a firmware update and updated HP software. Start here:
    http://www8.hp.com/us/en/hp-search/search-results.html?qt=LaserJet+m1217nfw+MFP& cc=us&lang=en&charset=utf-8&qp=&hpn=&hpa=&hps=&hpr=&cat=&current_url=CSSres
    then here:
    http://h10025.www1.hp.com/ewfrf/wc/softwareCategory?os=219&lc=en&cc=us&dlc=en&sw _lang=&product=4075472

  • My apple tv mirroring is slow.  So slow it shuts off.  Any thoughts on cause?  I use this device in my office for presentations without a problem.  In my home with a stronger wifi router, I'm having issues.

    My apple tv mirroring is slow.  So slow it shuts off.  Any thoughts on cause?  I use this device in my office for presentations without a problem.  In my home with a stronger wifi router, I'm having issues.

    Welcome to the Apple Community.
    Intermittent problems are often a result of interference. Interference can be caused by other networks in the neighbourhood or from household electrical items.
    You can download and install iStumbler (NetStumbler for windows users) to help you see which channels are used by neighbouring networks so that you can avoid them, but iStumbler will not see household items.
    Refer to your router manual for instructions on changing your wifi channel or adjusting your multicast rate.
    There are other types of problems that can affect networks, but this is by far the most common, hence worth mentioning first. Networks that have inherent issues can be seen to work differently with different versions of the same software. You might also try moving the Apple TV away from other electrical equipment.

Maybe you are looking for

  • Z77A-GD65 Buggy bios Version 10.10

    Hello All I recently got this motherboard and during a bios update through MSI tool M-Flash I faced similar problems as some users reported in other post: https://forum-en.msi.com/index.php?topic=171694.0 I have made the registration on the forum to

  • Problem with My Base64 Encoding CLOB  Routine.

    I have written a program which reads an xml file into the database and makes it Base64encoded. This needs to work on 10g and above If the read length specified in the code below is greater than the length of the xml_file, then I get the expected resu

  • App to schedule backups to WebDAV?

    Looking for an app, please, to schedule backups to a WebDAV on a leased CPanel server. Saw "Twin" in App Store but looking for something less.

  • Entity field mapping

    Good day, everyone! I have two modules: API and EJB. Main idea is that api should not have any dependencies and all entities impliments interfaces. So I have Operator(from API) interface and OperatorEntity(from EJB). Here is the code OperatorEntity.j

  • Log files information

    An user identification was used by several persons logged in different terminals. I need to know what he did and in what terminal during a certain period. Probably this information exists in a log file. How can I know that?