5 Okay so doing a fresh build of SummerCoat works but then if I relaunch it
6 it seems to not want to work and gets stuck scanning classes.
10 Okay, it still continues and parses all the libraries (they are initialized)
11 so I guess there is some kind of slowness?
15 Oh I see, it is actually compiling a huge chunk of the libraries which is
16 where that pause is coming from. So it might be reading some bad memory?
20 But then it fails in JVM load string with a read way off memory. So this is
21 very likely the crash point. I think I definitely need to make RatufaCoat
22 safer when it comes to memory and having protected regions and such. This
23 way the VM will just stop on invalid accesses instead of just randomly
28 Definitely need something better. So would say I could do the same thing
29 with virtual memory but making it a thing everywhere. It could possibly
30 even allow things to run on DOS with like swapping and such potentially.
34 I believe I need a more complex error state, since I would like to store
35 an error code and a second value as a kind of meaning.
39 Okay, RatufaCoat could use a bit of a refactor. Everything is in a single
40 source file which was fine at first, but it needs to be a bit cleaner and
45 Also instead of the manual memory maps, I am going to add a virtual
46 memory manager and such to handle read/writes of all of it.
50 I need an actual atomic compare and set instruction otherwise doing
51 monitors and such will be complicated.
55 Switching all the code to use the virtual memory stuff was complicated,
56 but hopefully I did not mess up anywhere. Will find out if I did.
57 Hopefully it is more stable and does not crash randomly since I do know
58 bad memory is being accessed.