Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 312820 - [TMF] Arithmetic exceptions
Summary: [TMF] Arithmetic exceptions
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: LinuxTools (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Francois Chouinard CLA
QA Contact: Francois Chouinard CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 301610
  Show dependency tree
 
Reported: 2010-05-13 13:09 EDT by Francois Chouinard CLA
Modified: 2022-01-13 14:53 EST (History)
0 users

See Also:


Attachments
Arithmetic exception fix (6.88 KB, patch)
2010-05-13 14:01 EDT, Francois Chouinard CLA
fchouinard: iplog-
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Francois Chouinard CLA 2010-05-13 13:09:17 EDT
When opening a new experiment, the time range is initialized to [BigBang,BigCrunch] and then updated as the trace events are parsed.

The timestamp comparisons are done using TmfTimestamp.compareTo() which uses then normalizes the timestamps using private method synchronize(). And synchronize() throws an ArithmeticException when the scales are ridiculously apart, as is the case when opening an experiment...

The fix is to have compareTo() make an early (and obvious) decision when either timestamps is BigBang or BigCrunch.
Comment 1 Francois Chouinard CLA 2010-05-13 14:01:56 EDT
Created attachment 168431 [details]
Arithmetic exception fix
Comment 2 Francois Chouinard CLA 2010-05-13 14:03:04 EDT
Patch committed.
Comment 3 Francois Chouinard CLA 2010-07-08 10:18:49 EDT
Released in a past delivery.
Comment 4 Francois Chouinard CLA 2010-07-08 10:20:25 EDT
Released in a previous delivery.