Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (843)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  How's this for stupid?  (Read 1332 times)
0 Members and 1 Guest are viewing this topic.
Offline blahblahblahh

JGO Coder

Medals: 1

« Posted 2004-04-08 10:20:50 »

I've just spend two hours trying to find out why a unit test wasn't outputting any debug messages after a certain point (trying to diagnose a memory leak I've found in NIO that can crash a 512Mb server in under 8 seconds - and afraid it's something wrong with gathering writes in 1.4.2_04; more on that later, once I've worked out whether it's our code or not and have a small test case).

After 1.8 hours I'd narrowed it down to a single line (there are lots of different code-paths so I had to check each one), a line whose sole purpose is to apply logging filters to all future log messages, based on the resource being requested. Of course, the unit test is mostly testing uninteresting stuff, like very common requests.

Took me ten minutes of looking through the source of the logging filter applier thinking "is this blocking on a synchronization lock?" (there's java.lang.Thread-related code involved) before I realised the stunningly obvious. Low and behold, now I notice there's a config file for this unit test that specifically does NOT filter all the boring stuff. Arggh! And it was only earlier this week that *I* brought up the suggestion that we should make our SCM automatically overwrite config files when it exports unit tests. Doh, Doh, and triple Doh!

malloc will be first against the wall when the revolution comes...
Pages: [1]
  ignore  |  Print  

EgonOlsen (37 views)
2018-06-10 19:43:48

EgonOlsen (20 views)
2018-06-10 19:43:44

EgonOlsen (39 views)
2018-06-10 19:43:20

DesertCoockie (186 views)
2018-05-13 18:23:11

nelsongames (122 views)
2018-04-24 18:15:36

nelsongames (121 views)
2018-04-24 18:14:32

ivj94 (861 views)
2018-03-24 14:47:39

ivj94 (122 views)
2018-03-24 14:46:31

ivj94 (758 views)
2018-03-24 14:43:53

Solater (139 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!