Commit Graph

309 Commits (17854c4e8702febaa8fe4adfbc678f9abaaa52c7)

Author SHA1 Message Date
Xiaohong Bao 95838efeaa Merge 2011-02-23 14:39:42 -07:00
Xiaohong Bao 29415d1407 Merge 2011-02-23 13:48:35 -07:00
Oz Linden eacd9d5d59 merge changes for storm-981 2011-02-16 15:52:05 -05:00
Merov Linden e15b543dd6 STORM-975 : pull into viewer-development 2011-02-11 17:42:37 -08:00
Merov Linden 9aaf4b3ba7 STORM-981 : Fix Linux link issues when LL_TESTS is ON 2011-02-09 22:08:43 -08:00
Merov Linden 47642e96f9 STORM-953 : pull into viewer-development 2011-02-08 22:23:32 -08:00
Merov Linden 6ba900073f STORM-955 : pull into viewer-development 2011-02-08 22:22:25 -08:00
Merov Linden 2a13dc7930 STORM-960 : pull into viewer-development 2011-02-08 22:21:15 -08:00
Jonathan Yap 979cd0300f STORM-975 forgot to update contributions.txt 2011-02-07 11:55:17 -05:00
Aleric Inglewood ef490e308c Introduces a LLThreadLocalData class that can be
accessed through the static LLThread::tldata().
Currently this object contains two (public) thread-local
objects: a LLAPRRootPool and a LLVolatileAPRPool.

The first is the general memory pool used by this thread
(and this thread alone), while the second is intended
for short lived memory allocations (needed for APR).
The advantages of not mixing those two is that the latter
is used most frequently, and as a result of it's nature
can be destroyed and reconstructed on a "regular" basis.

This patch adds LLAPRPool (completely replacing the old one),
which is a wrapper around apr_pool_t* and has complete
thread-safity checking.

Whenever an apr call requires memory for some resource,
a memory pool in the form of an LLAPRPool object can
be created with the same life-time as this resource;
assuring clean up of the memory no sooner, but also
not much later than the life-time of the resource
that needs the memory.

Many, many function calls and constructors had the
pool parameter simply removed (it is no longer the
concern of the developer, if you don't write code
that actually does an libapr call then you are no
longer bothered with memory pools at all).

However, I kept the notion of short-lived and
long-lived allocations alive (see my remark in
the jira here: https://jira.secondlife.com/browse/STORM-864?focusedCommentId=235356&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-235356
which requires that the LLAPRFile API needs
to allow the user to specify how long they
think a file will stay open. By choosing
'short_lived' as default for the constructor
that immediately opens a file, the number of
instances where this needs to be specified is
drastically reduced however (obviously, any
automatic LLAPRFile is short lived).

***

Addressed Boroondas remarks in https://codereview.secondlife.com/r/99/
regarding (doxygen) comments. This patch effectively only changes comments.

Includes some 'merge' stuff that ended up in llvocache.cpp
(while starting as a bug fix, now only resulting in a cleanup).

***

Added comment 'The use of apr_pool_t is OK here'.

Added this comment on every line where apr_pool_t
is correctly being used.

This should make it easier to spot (future) errors
where someone started to use apr_pool_t; you can
just grep all sources for 'apr_pool_t' and immediately
see where it's being used while LLAPRPool should
have been used.

Note that merging this patch is very easy:
If there are no other uses of apr_pool_t in the code
(one grep) and it compiles, then it will work.

***

Second Merge (needed to remove 'delete mCreationMutex'
from LLImageDecodeThread::~LLImageDecodeThread).

***

Added back #include <apr_pools.h>.

Apparently that is needed on libapr version 1.2.8.,
the version used by Linden Lab, for calls to
apr_queue_*. This is a bug in libapr (we also
include <apr_queue.h>, that is fixed in (at least) 1.3.7.

Note that 1.2.8 is VERY old. Even 1.3.x is old.

***

License fixes (GPL -> LGPL). And typo in comments.
Addresses merov's comments on the review board.

***

Added Merov's compile fixes for windows.
2011-02-05 15:58:07 +01:00
Jonathan Yap 38b228ad18 STORM-953 Clarify what happens when you uncheck Allow Public Access
Note: This change also incorporates STORM-960
2011-02-02 18:41:11 -05:00
Jonathan Yap df05f01fcd STORM-960 Descriptive text missing next to first checkbox in About Land/Access
Contribution team: Aleric Inglewood, Alexandrea Fride, Robin Cornelius, and Siana Gearz
2011-02-02 18:36:42 -05:00
Merov Linden dca34a56d2 STORM-435 : pull into viewer-development 2011-02-02 15:04:27 -08:00
Oz Linden cb6d59513e merge changes for storm-829 2011-01-31 12:32:57 -05:00
Twisted Laws 0d5b0cad14 Embed Minimap into the Nearby list of the People Sidebar 2011-01-26 19:22:42 -05:00
Aleric Inglewood 295536ae98 VWR-24321: fix validation of textures that start with 00 2011-01-24 09:35:41 -05:00
Oz Linden 7a453b7c93 add missing entry in contributions.txt for VWR-24347 2011-01-21 16:20:29 -05:00
Aleric Inglewood ee6a40beb1 VWR-24519: make debugging easier by not spawning spare process 2011-01-21 16:02:38 -05:00
Aleric Inglewood 97a9211d87 VWR-24354: correct manifest dependencies to prevent parallel install problem 2011-01-21 15:48:12 -05:00
Oz Linden 790dfe7556 merge changes for storm-844 2011-01-21 15:29:40 -05:00
Oz Linden 4652e26196 merge changes for storm-869 2011-01-21 15:14:39 -05:00
Aleric Inglewood c47ab36b20 VWR-24320: remove dump of call stack on clean exit 2011-01-20 16:01:27 -05:00
Aleric Inglewood a873ae55a3 VWR-24317: remove warning due to unassigned variable 2011-01-20 15:57:07 -05:00
Aleric Inglewood 42604a1080 VWR-24315: update cached control values when resetting debug setting to default 2011-01-20 14:35:04 -05:00
Aleric Inglewood 80d7432ce6 VWR-13040 - clean up LLObjectSelection iterator 2011-01-20 14:26:57 -05:00
Jonathan Yap 3571e83b64 STORM-869 Minor irregulaties in settings.xml -- remove duplicate entries, formatting cleanup 2011-01-19 06:02:08 -05:00
Oz Linden 74fdba8295 merge changes for vwr-24420 2011-01-17 10:30:36 -05:00
Kitty Barnett 1d7b46e2c3 VWR-24217: allow Contents folder from object to be dragged to inventory 2011-01-17 10:09:52 -05:00
Jonathan Yap 6a3d06deca STORM-844 Better way of doing "More" should be "Less" when Media Control is open
thanks to Twisted Laws
2011-01-16 12:10:44 -05:00
Merov Linden c020c5c0f3 STORM-723 : pull in viewer-development 2011-01-12 12:01:44 -08:00
Merov Linden 40cd81f423 STORM-615 : pull in viewer-development 2011-01-12 11:18:19 -08:00
Jonathan Yap e27ae655c6 STORM-844 Minor adjustment to contributions.txt 2011-01-12 10:37:15 -05:00
Jonathan Yap 3703f0bb0d STORM-844 "More" should be "Less" when Media Control is open 2011-01-12 08:24:38 -05:00
Thickbrick Sleaford fe28f89e7e merge VWR-24420 into v-d 2011-01-09 18:29:56 +02:00
Thickbrick Sleaford db1a63e99e FIX VWR-24420 Keep alpha channel in PNG images with background color.
Remove code that composites RGBA PNG images that specify a background
color down to RGB.
2011-01-09 01:13:38 +02:00
Coaldust Numbers 8cfea0bab1 VWR-1095 fix for problems with uploads following bulk upload failure
de minimus contribution accepted without CA - Oz Linden
2011-01-07 15:08:42 -05:00
Jonathan Yap c692b2bdb2 STORM-435 There is no space between name of object and value of object in Chat step while creating new gesture 2011-01-07 13:12:39 -05:00
Oz Linden 894e98a708 merge changes for storm-812 2011-01-06 14:33:35 -05:00
Jonathan Yap d0b5e6b0b4 STORM-829 Viewer 2 does not parse /me in object Instant Messages 2011-01-06 06:07:11 -05:00
Oz Linden eb0b8ab3ea merge changes for storm-825 2011-01-05 17:53:37 -05:00
Oz Linden 78895f9e0c merge changes for storm-467 2011-01-04 16:45:08 -05:00
Oz Linden 05810f063d merge changes for storm-737 2011-01-04 16:43:26 -05:00
Oz Linden e4591a8518 merge changes for storm-466 2011-01-04 16:41:05 -05:00
Aleric Inglewood 9531046609 STORM-955: VWR-24312: Massively duplicated objects
Turns out that most of my SNOW-800 patch was included in Viewer 2 (albeit without crediting me).
However, not everything was used and some more cleaning up was possible.

After this patch, and when compiling with optimization, there are no duplicates left
anymore that shouldn't be there in the first place. Apart from the debug stream
iostream guard variable, there are several static variables with the same name (r, r1,
r2, etc) but that indeed actually different symbol objects. Then there are a few
constant POD arrays that are duplicated a hand full of times because they are
accessed with a variable index (so optimizing them away is not possible). I left them
like that (although defining those as extern as well would have been more consistent
and not slower; in fact it would be faster theoretically because those arrays could
share the same cache page then).
2010-12-30 14:53:30 +01:00
Wolfpup Lowenhar 44e6327674 STORM-825 : Reenable the LLMatrix3::orthogonalize test in llmath/tests/m3math_test.cpp
Removed the skipping of a working test as this was causeing a the test to fail
    building and thus not actualy running all the tests.
2010-12-28 19:14:33 -05:00
Jonathan Yap d420ca89b4 STORM-466 Put Twisted Laws name into contributions.txt 2010-12-28 05:32:43 -05:00
Merov Linden 0b74df6774 STORM-523 : pull into viewer-development 2010-12-27 21:21:01 -08:00
Oz Linden 14d830ca43 merge improved fix for STORM_785 2010-12-24 07:41:41 -05:00
Jonathan Yap 1ca028cd7b STORM-812 Make bottom buttons in Object Profile identical for single and multi-prim objects 2010-12-23 17:12:37 -05:00
Jonathan Yap 09c7d38166 STORM-467 Fix for minimap zoom does not persist to the next session 2010-12-18 16:44:51 -05:00